Forums
This topic is locked
logout server behavior doesn't log out the user
Posted 01 Oct 2003 18:46:58
1
has voted
01 Oct 2003 18:46:58 Chris Schmidt posted:
I'm using PHP login and logout server behaviors with DreamweaverMX. I added the logout server behavior to a link that says "LOGOUT". When I click the "LOGOUT" link, my goodbye page is displayed, but I am still able to click the back browser button and the user is still logged in and the database data is being displayed. Is there more code I need to add to really logoff the user?Thanks,
Chris
Replies
Replied 02 Oct 2003 15:55:14
02 Oct 2003 15:55:14 Michael Guntenaar replied:
Could you please post some code <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
I think the behavior doesnt kill the cookie or ends the session <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
I think the behavior doesnt kill the cookie or ends the session <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 02 Oct 2003 16:02:05
02 Oct 2003 16:02:05 Chris Schmidt replied:
Thanks for replying. I figured it out. Dreamweaver wrote the session_unregister for the session variables but I had to add session_destroy to completely logout the user. Now he can't use the back button to get back into the site.
Replied 03 Oct 2003 09:34:55
03 Oct 2003 09:34:55 Rick Heidrick replied:
I had the same problem until I started adding the session_start(); just above the //** Logout the current user.** note and deleting the one in font of the &MM_authorizedUser = "";
For some reason the extensions are not seeing each other and it either doesn't log out or you get an error about a session already started.
For some reason the extensions are not seeing each other and it either doesn't log out or you get an error about a session already started.