CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 kill session after logout

Print topic Send  topic

Author Message
lin

Posts: 5
Posted: 03/22/2004, 6:20 AM

I use codecharge studio~

I would like to kill the session after logout, how to do that?

I have a member area in my page after login, when I logout the page, I can press the 'Back' button to see the member area again! I don't want this, I need the page should be re-login again, can any one help me?

Also, the session doesn't kill, except I close the IE browser, what can i change it to kill session after logout?

Thank you very much~
View profile  Send private message
Helmut

Posts: 9
Posted: 03/22/2004, 6:29 AM

You can use the Builder Assistant to make an Logout link, or you can use the php command session_unregister()

http://de3.php.net/manual/en/function.session-unregister.php

Helmut
View profile  Send private message
peterr


Posts: 5971
Posted: 03/22/2004, 6:29 AM

May I ask why do you believe that the session is not killed after logging out?

As for seeing the page when clicking "Back", this is probably due to the browser's caching of the page. You should be able to handle this via HTML http://www.google.de/search?q=html+meta+tags+caching
although if you disable the caching then the performance can be slower for users who are logged in since clicking the Back button will need to refresh the page. Of course if your data is changing very frequently then it may be better to disable the caching completely anyway.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Nader
Posted: 12/30/2004, 11:09 PM


I have the same experience as lin :-(
When I go "Back" I still see the pages from privious login. The sad part is I could change the data in that page and submit it to my database :-O

I hope code charge guys have a solutioin for this.

Nader
2467

Posts: 47
Posted: 01/06/2005, 8:10 AM

This works for me

1. Select 'Login' (your login page) in the 'Project explorer'
2. Than right click and choose properties
3. Go to properties page and select 'Events' tab
4. On 'After initialize' right click and 'add action' - Logout
5. On 'On initialize view' right click and 'add action' - Logout
6. Generate your page

That’s it
By Ylli :-)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.