Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2007, 06:29 AM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ramkiran
Default set the default page as login

hi all i have a problem and i need your help to solve it
i have an application in which there is login page and some other pages.
i have logged with username and pasword and navigated to remaining pages and did some operation over those pages and logged out.
And now when i hit the back button on the browser iam being redirected to the previous page without actually login and iam able to perform my operations as a same user.now i want this to not happen.when ever i log out and hit back button of the browser i must be redirected to log in page and should have access to my application when ever i login.

can any body help....
thanx
ramkiran
 
Old April 22nd, 2007, 10:59 PM
Authorized User
 
Join Date: Dec 2006
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to deb1980
Default

Hi ramkiran,

You can use session variables to check if the variables are valid or not.
What you can do is:

1. When user logs in define a session variable and store [say userid].
2. In the other pages check if the varable is valid or not.
3. When user logs out, destroy the session veriable.

Hope this helps.


---
Best regards,

Debashis





Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i set default parameter value.. rupen Classic ASP Basics 5 January 5th, 2007 12:14 AM
Set Default selection in ListBox nmreid Classic ASP Basics 0 January 20th, 2006 04:49 PM
how to set default value to datetimepicker control xshelp General .NET 1 December 8th, 2005 10:09 PM
how to set parameter default value oranginalab Classic ASP Basics 0 August 28th, 2003 02:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.