in reply to Sessions Questions
Could you please advise us on what the modules in use are here? A lot of distributions provide session objects, so this may help narrow down the issue quite a bit.
Most importantly, where are you getting Expires() and AccessInOutLot() etc coming from?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sessions Questions
by tultalk (Monk) on Mar 01, 2017 at 02:04 UTC | |
#------------------------------------------------------------------------------- # FUNCTION: LoginUser($dsn,$sql_username,$sql_password,$sql_user_table,$sql_session_table,$passhash,$sessionhash,$uvId,$username,$ipaddress); # DESCRIPTION: The user will log in, sending the username and password #-------------------------------------------------------------------------------
| [reply] [d/l] |
by huck (Prior) on Mar 01, 2017 at 23:30 UTC | |
I'd love to have you explain what you think is in %query I'm going to take pity and assume its use CGI::Session; http://search.cpan.org/~sherzodr/CGI-Session-3.95/Session.pm
Seems expire and expires does the same thing
This works just fine for me Notice the 50% chance of being deleted, and the 50% chance of +1m vs +7d. refresh it a few times to watch it delete-cycle and expire-cycle. I'm Looking at a '_SESSION_ETIME' => 604800, run now, thats 7 days. play with that, get it to do what you want them make LoginUser do the same thing so what does AccessInOutLog($session); #Added 02/18/05 do, are you sure it doesnt change expires? and i just love Maybe you need to email me your error.log so i can debug farther | [reply] [d/l] [select] |
by tultalk (Monk) on Mar 02, 2017 at 13:58 UTC | |
Hi: I'd love to have you explain what you think is in %query It is used all over and contains the parameters (pairs) of the request. "Sets expiration date relative to atime(). so Now() + (86400*7) was real huge considering now is something close to 1488409938." Indeed. Tried with Now() + 7d and it did not work. There is a skunk in the woodpile somewhere. Please bear with me, I have not "really" revisited this code for 12-13 years.
Example from log: Log In: 2017-02-26 11:32:16 Log Out: 1969-12-31 18:00:00 Username = admin Name = Admin Access IP Address = 72.168.129.123 Log In: 2017-02-26 15:55:14 Log Out: 1969-12-31 18:00:00 Username = admin Name = Admin Access IP Address = 72.168.129.123 Log In: 2017-02-26 18:06:59 Log Out: 1969-12-31 18:00:00 Username = admin Name = Admin Access IP Address = 72.168.129.123 Log In: 2017-02-26 18:10:31 Log Out: 1969-12-31 18:00:00 Username = admin Name = Admin Access IP Address = 72.168.129.123 Log In: 2017-02-26 19:08:26 Log Out: 1969-12-31 18:00:00 Username = admin Name = Admin Access IP Address = 72.168.129.123 Log In: 2017-02-27 23:47:36 Log Out: 1969-12-31 18:00:00 Username = admin Name = Admin Access IP Address = 72.168.129.123 | [reply] [d/l] |
by huck (Prior) on Mar 02, 2017 at 16:03 UTC | |
by tultalk (Monk) on Mar 05, 2017 at 02:19 UTC | |
| [reply] |
by huck (Prior) on Mar 05, 2017 at 05:05 UTC | |
by tultalk (Monk) on Mar 05, 2017 at 13:56 UTC | |
| |