Hi gurus and nubys,
I’m just trying to write my first cgi app,
but I can’t get how sessions work.
What I’d like to do is:
- admit a registered user (ok, done)
- make the ‘Logged’ state persist for X time
- reset the X time while the user is on site (i.e. loads other pages)
- set Logged=false when X elapses
- retrieve some data (actually, just the UserID) in any loaded page
I’m sure this is really simple and obvious, but, of course, I’m
stupid.
Some url or code snippet would be really appreciated
thanks in advance for any help