[Chameleon] Session parameters...

Mike Leahy mgleahy at fes.uwaterloo.ca
Mon Oct 18 13:18:26 EDT 2004


Paul,

I did try this...I loaded one of the samples as-is with the sid for a session 
that had just been created moments before in the URL.  The map loads fine, 
except that the 'session expired' message appears.  

In order to make sure the structure compatible, I've incorporated chameleon's 
session.php script into the site I'm developing, so the session structure is 
identical.  When I load one of the chameleon samples using sid=session name, 
it appears to work fine (i.e., it uses the correct session save path and 
file), but I still get the message "Your session has expired" at the top of 
the viewer.  I'm not quite sure how to fix this - would anyone know how I 
might get chameleon to recognize that the session is not actually expired?

Thanks,
Mike


-----Original Message-----
From: Paul Spencer [mailto:pspencer at dmsolutions.ca] 
Sent: October 14, 2004 8:45 PM
To: William Bronsema
Cc: 'Mike Leahy'; chameleon at lists.maptools.org
Subject: Re: [Chameleon] Session parameters...

Mike,

you could just try appending sid=<session id> to the url.  Chameleon 
will automatically try to use this session id.  However, I'm not 
entirely sure that it is safe to do this because Chameleon may not 
initialize a bunch of stuff that it needs to do when the session is 
first started.

The other issue would be compatibility of the session structure, but 
Chameleon does use it's own session handler that uses a directory 
already, so it may just work.

Paul

William Bronsema wrote:
> Hi Mike,
> 
> Unfortunately at this point in time Chameleon does not yet support this
> functionality.  I can see where this might be a handy feature.  
> 
> You can file this as an enhancement in bugzilla so that it is not forgotten
> about.
> 
> 
> Regards,
> Bill
> 
> 
>>-----Original Message-----
>>From: chameleon-bounces at lists.maptools.org [mailto:chameleon-
>>bounces at lists.maptools.org] On Behalf Of Mike Leahy
>>Sent: October 12, 2004 3:21 PM
>>To: chameleon at lists.maptools.org
>>Subject: [Chameleon] Session parameters...
>>
>>Hello List,
>>
>>I'm just getting started with Chameleon.  I already have a site I've been
>>developing that uses PHP sessions.  For a given user's session, I store
>>both
>>the session file and any session-specific files within a sub-folder in the
>>PHP
>>temp directory.  Both the sub-folder and the session file have are named
>>the
>>same as the PHP session ID.  Is it possible to pass the session ID and
>>save-
>>path to a chameleon application using form parameters or global PHP
>>parameters?  I'm hoping I can use sessions to pass information back and
>>forth
>>from a chameleon application, but I would like to avoid editing
>>cameleon.php
>>or session.php to accomplish this if I can.
>>
>>Any suggestions?
>>
>>Thanks,
>>Mike
>>
>>----------------------------------------
>>This mail sent through www.mywaterloo.ca
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 




----------------------------------------
This mail sent through www.mywaterloo.ca


More information about the Chameleon mailing list