Re: [PHP] Session destruction problem

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 10:49 PM, Adil Drissi [EMAIL PROTECTED] wrote: Hi, I made an error i was using unset($_SESSION[sessioname]) instead of unset($_SESSION). I'm sorry, but anyway, now i want to give another detail. All the time i was testing with opera. After testing in firefox and

Re: [PHP] Session destruction problem

2008-02-24 Thread Shawn McKenzie
Adil Drissi wrote: Hi, I made an error i was using unset($_SESSION[sessioname]) instead of unset($_SESSION). I'm sorry, but anyway, now i want to give another detail. All the time i was testing with opera. After testing in firefox and ie there is no problem with the code i posted. Yes,

Re: [PHP] Session destruction problem

2008-02-23 Thread Adil Drissi
Hi, I made an error i was using unset($_SESSION[sessioname]) instead of unset($_SESSION). I'm sorry, but anyway, now i want to give another detail. All the time i was testing with opera. After testing in firefox and ie there is no problem with the code i posted. Thank you very much for your help

Re: [PHP] Session destruction problem

2008-02-21 Thread Nathan Rixham
Adil Drissi wrote: thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem

Re: [PHP] Session destruction problem

2008-02-21 Thread Nathan Rixham
Adil Drissi wrote: thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem

Re: [PHP] Session destruction problem

2008-02-21 Thread tedd
At 10:47 AM + 2/21/08, Nathan Rixham wrote: apologies, I completely forgot that your using session_destroy ammend to.. ?php session_start(); session_destroy(); unset($_SESSION); session_write_close(); sleep(1); header(location: /index.php); ? Nathan: I don't think it's that simple. For

Re: [PHP] Session destruction problem

2008-02-20 Thread tedd
At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem is in my algorithm, because the is created anytime the page is refreshed. But i don't know how to check if the client was logged out or it is a real new connexion to the page. As you will

Re: [PHP] Session destruction problem

2008-02-20 Thread Adil Drissi
thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem is in my

Re: [PHP] Session destruction problem

2008-02-19 Thread Adil Drissi
Hi, Below you'll find my code. I think now that the problem is in my algorithm, because the is created anytime the page is refreshed. But i don't know how to check if the client was logged out or it is a real new connexion to the page. As you will see one can click on logout, then press the back

Re: [PHP] Session destruction problem

2008-02-18 Thread Richard Lynch
On Sat, February 16, 2008 2:31 pm, Adil Drissi wrote: I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). Do you mean that you are also using the no_cookie setting in PHP and using the URL to pass around the session ID? Or jut that you

Re: [PHP] Session destruction problem

2008-02-17 Thread Nick Stinemates
Adil Drissi wrote: Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this is the case

Re: [PHP] Session destruction problem

2008-02-17 Thread Adil Drissi
Is your session being set in any other place but your login page? No, just in the page just to which the form of login and password points. Looking for last minute shopping deals? Find them

Re: [PHP] Session destruction problem

2008-02-17 Thread Daniel Brown
On Feb 16, 2008 3:31 PM, Adil Drissi [EMAIL PROTECTED] wrote: Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). Just to let you know, if you're using sessions, you're using cookies. You're not setting the data in

Re: [PHP] Session destruction problem

2008-02-17 Thread Adil Drissi
Hi, I suppose this can be used to solve the problem i posted. Can you please tell me how, or send a link to ressource explaining that? Thanks --- Daniel Brown [EMAIL PROTECTED] wrote: On Feb 16, 2008 3:31 PM, Adil Drissi [EMAIL PROTECTED] wrote: Hi everybody, I need help with sessions.

Re: [PHP] Session destruction problem

2008-02-17 Thread tedd
At 12:31 PM -0800 2/16/08, Adil Drissi wrote: Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this

Re: [PHP] Session destruction problem

2008-02-17 Thread Adil Drissi
Hi, Thanks for the link, it is very interesting, but as the author says, the solutions are not perfect. I'm wondering how yahoo mail for example are doing, or maybe they are using something else (not php)? Thank you --- tedd [EMAIL PROTECTED] wrote: At 12:31 PM -0800 2/16/08, Adil Drissi

[PHP] Session destruction problem

2008-02-16 Thread Adil Drissi
Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this is the case $_SESSION['sessioname'] =

Re: [PHP] Session destruction

2001-09-06 Thread * RzE:
Original message From: Kristofer Thorssell [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 04:56:17PM +0200 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Session destruction ? session_start(); if(session_destroy()) echo You are now logged out; ? is there something wrong with this? because