Handling sessions through cookies, is it safe?
- From: romayankin@xxxxxxxxx
- Date: 16 Jul 2006 15:22:13 -0700
I need to limit the session time for a particular user who is working
on my site. I'd also like to extend the session time each time user
performs some action (moves from one page to another). I've written the
following code to accomplish this task
/* Extending session */
if(isset($_COOKIE['username'])) {
setcookie ("username", $_POST['username'], time()+3600);
}
Variable $_COOKIE['username'] right after the authorization is
completed.
The problem is that I don't think this is a safe way to handle
sessions. Perhaps I should use $_SESSION global array to store the
username of the logged user?
.
- Follow-Ups:
- Re: Handling sessions through cookies, is it safe?
- From: s a n j a y
- Re: Handling sessions through cookies, is it safe?
- From: Rik
- Re: Handling sessions through cookies, is it safe?
- Prev by Date: Re: Simple question
- Next by Date: Re: Need Help with a PHP Coding Issue
- Previous by thread: Simple question
- Next by thread: Re: Handling sessions through cookies, is it safe?
- Index(es):