View unanswered posts | View active topics
Your status has been updated!
|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
eamnq
|
Post subject: Cookie Password Protection 1.1 Expire Cookie Posted: Thu Jun 03, 2010 2:29 am |
|
 |
Rookie (I'm probably spamming) |
 |
Joined: Fri May 14, 2010 9:46 pm Posts: 9 Points: 0
|
When using cpp_11, my cookies expire on time (I am using .1 for six minutes instead of 1 for 1 hour).
However, I would like to end session at logout or at least after all browser window are closed.
Is there a work-around to end a cookie session at logout, such as:
<? { session_start(); $_SESSION = array(); // destroy all $_SESSION data setcookie("PHPSESSID", "", time() - 3600, "/"); session_destroy(); } ?>
(But this code doesn't work.)
Thank you.
|
|
Top |
|
 |
eamnq
|
Post subject: Re: Cookie Password Protection 1.1 Expire Cookie Posted: Fri Jun 04, 2010 12:36 am |
|
 |
Rookie (I'm probably spamming) |
 |
Joined: Fri May 14, 2010 9:46 pm Posts: 9 Points: 0
|
Thanks...
For my purposes (allowing a user to upload a single file during a coordinated upload, I found ' $expirecookie = .0075; ' (45 seconds) to be the most useful. This, of course, would be a "coordinated upload where a company agent would grant a temporary password to the uploader.
During my testing, it appeared that the expiration time began after the user's last upload function.
Thanks again.
|
|
Top |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Registered users: No registered users |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|