i found that your supposed to use this:
session.gc_maxlifetime
but i dont know how. does anyone know how i can destroy a log in session so the user wont be logged in 30 minutes later.
?
SKANK!!!!!
5
Posting Pro in Training
Recommended Answers
Jump to PostHey.
Yea, you set the
session.gc_maxlifetime
variable in the php.ini file to limit the time a session can stay idle.If you don't know where the php.ini file is, create a file with just:
<?php phpinfo(); ?>
and look for the "Loaded Configuration File" value. That will contain …
Jump to PostIt should be very close to the top.
See the attached image. It shows where it is on my PC.
Jump to PostAhh ok, so you don't control the server yourself. That complicates these sort of things.
An easy way around this is to just manually destroy the session in your scripts by keeping track of when the user is active and destroy the session when he is idle for to …
Jump to PostSure, but any method that would allow for that would require control over key areas of the server, which you are unlikely to have on a free, shared server.
If you did have the access, you could write a script that cleans out the temporary session files, stored in …
All 13 Replies
Atli
182
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
Atli
182
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
Atli
182
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
Atli
182
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
Atli
182
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
Atli
182
Posting Pro
Atli
182
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.