[PHP] Question about sessions: how to force expiry
Hi, I am using a session variable to create an area where customers can access certain pages via login/password. If they successfully login, I create a session variable and initialize it with their logon username. I also have a logout button which unregisters the session variables and issues a session_unset() and session_destroy(). Then is takes them back to the login page. Now all my pages in this area first check if the session variable is set and if not, displays a message that the user must first login. I noticed that after logging out and clicking click on the Back button in my browser, it takes me back to the previous page which is does NOT display the warning that the user must login. However, when I click on the Refresh, it does. Is this some sort of caching problem? I note that other sites with similar setups do not have this problem. When I click on the Back button, I saw an expiry message. How can I emulate this please? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question about sessions
Hi, I am creating a session for user autentication. As I read from the help there are two ways for passing session IDs -Cookies -URL parameter. By default its passing it through cookies. I don't want to use any cookies in my program. Can anyone tell me how to go for the other way? i.e. through URL parameter?? Thanks, Varsha __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Question about sessions
On Saturday 03 August 2002 10:19, Varsha Agarwal wrote: Hi, I am creating a session for user autentication. As I read from the help there are two ways for passing session IDs -Cookies -URL parameter. By default its passing it through cookies. I don't want to use any cookies in my program. Can anyone tell me how to go for the other way? i.e. through URL parameter?? Look in php.ini and set session.use_cookies to 0. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* sticktion */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question about sessions
I have a mysql/php db/website that uses session, (i am new to sessions). My question is that the session works and all but i notice that it writes alot of sess_*** files in the /tmp directory. Do i need to purge these weekly so it wont use tooo much room or are these spose to delete them selves.? Maybe someone has come accross this before and fixed it? Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question about sessions
Chris, I have found that when you get the users to exit propperly they will go by them selves ... also have a look @ the garbage collection in your php.ini file Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Date: Tue, 14 Aug 2001 10:11:22 +1000 To: [EMAIL PROTECTED] From: Chris Kay [EMAIL PROTECTED] Mime-Version: 1.0 Subject: [PHP] Question about sessions X-Mozilla-Status: X-Mozilla-Status2: X-UIDL: e0581fbdbadb633f348da8cb3b99517e I have a mysql/php db/website that uses session, (i am new to sessions). My question is that the session works and all but i notice that it writes alot of sess_*** files in the /tmp directory. Do i need to purge these weekly so it wont use tooo much room or are these spose to delete them selves.? Maybe someone has come accross this before and fixed it? Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Peter Houchin Sun Rentals STR Manager Phone: 03 9329 1455 Fax: 03 9329 6755 [EMAIL PROTECTED] http://www.sun.com.au/rentals = _ __ /\ /_/_/_\/ |_/ \ /_/_/___ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/v /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ __ __ __ /_/ __ __ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ = Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 * We rent the dot in .COM! ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question about sessions
There's a session deletion script based on the last time a session file was written to. You can set the duration a session is allowed to stay on the file system for. http://database.sf.net/ - Down the bottom. On Tue, 14 Aug 2001, Chris Kay wrote: I have a mysql/php db/website that uses session, (i am new to sessions). My question is that the session works and all but i notice that it writes alot of sess_*** files in the /tmp directory. Do i need to purge these weekly so it wont use tooo much room or are these spose to delete them selves.? Maybe someone has come accross this before and fixed it? Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Question about Sessions
Hello everyone-- I've got a general question about cookies and sessions. I was wondering if this is how php handles sessions because this is what I want. Is it possible to set up php so that the session id is the only thing that is set in the cookie and then all the session data is either pushed into a file or a database? thanks, jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question about Sessions
Hi Jay! On Thu, 05 Jul 2001, Jay Paulson wrote: Hello everyone-- I've got a general question about cookies and sessions. I was wondering if this is how php handles sessions because this is what I want. Is it possible to set up php so that the session id is the only thing that is set in the cookie and then all the session data is either pushed into a file or a database? erm, I think that is how it actually work now. Maybe you wanted to ask something else? A link for the manual? :) http://www.php.net/manual/en/ref.session.php -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question about Sessions
okay if i read the manual correctly (too bad i couldn't find that page or i wouldn't have had to ask this question :) ) all it stores in cookies is the session id, which is exactly what i wanted to hear! Because i have a flash navigation clip and i don't want to have to load the vars in the flash just to pass the session id.. but i will if i have too.. thanks, jay - Original Message - From: [EMAIL PROTECTED] To: PHP users [EMAIL PROTECTED] Sent: Thursday, July 05, 2001 7:36 PM Subject: Re: [PHP] Question about Sessions Hi Jay! On Thu, 05 Jul 2001, Jay Paulson wrote: Hello everyone-- I've got a general question about cookies and sessions. I was wondering if this is how php handles sessions because this is what I want. Is it possible to set up php so that the session id is the only thing that is set in the cookie and then all the session data is either pushed into a file or a database? erm, I think that is how it actually work now. Maybe you wanted to ask something else? A link for the manual? :) http://www.php.net/manual/en/ref.session.php -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]