in reply to CGI::Session Handling
Do I have to pass the cookie and session variables as headers to each page? This doesn't seem right as it should be kept on disk or in memory until expiration."Which disk" and "which memory?" The act of saving a cookie does write the SID to disk -- the client's disk. Checking, on every page load, if the cookie exists, and if it does, setting the SID to that value, recreates the session.
If the cookie doesn't exist, a new SID will get created. That is normal behavior, since, as far as your program is concerned, it has never seen that session before.
All that said, I've had problems with CGI-Session as well, but only when using the ODBC driver. I eventually ended up using just a file and things worked just well.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Session Handling
by intranetman (Acolyte) on Sep 22, 2004 at 20:35 UTC | |
by punkish (Priest) on Sep 22, 2004 at 22:50 UTC | |
by intranetman (Acolyte) on Sep 23, 2004 at 15:34 UTC | |
by intranetman (Acolyte) on Sep 22, 2004 at 21:38 UTC |