--- [EMAIL PROTECTED] wrote: > 1. Can sessions work in the same way as my cookies? (Just remember > a value to a variable, accross many page)
Yes, they address the same challenge: persisting data. Also, please realize that sessions can use cookies for identification. One of the benefits of using sessions is that the session data is stored on the server. This has some security benefits. > 2. can seesions be set up to work accross browser sessions? (If I > close my browser, will they work when I open a new one?) Yes, however, this won't necessarily be automatic for you. As long as the client identifies itself (via persistent cookie or URL variable) on the next visit, and the session itself has not expired, you will resume the session. > 3. I've seen on many web sites a 'remember me' checkbox. I'd love to > learn how to do that, is that session related? Yes, but it is usually more related to cookies. Many of these sites only set a persistent cookie if you check this box, otherwise requiring you to login again if you close your browser. What exactly is in this cookie depends on the site; some sites may only store your username (so you still have to type in your password again), while others store your session identifier (and hopefully some information to deter impersonation), so that your session is automatically resumed when you revisit. For a general overview of cookies, you can read this free chapter: http://shiflett.org/books/http-developers-handbook/chapters/11 Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php