473,465 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Maintaining of user session?

5 New Member
Hi everybody
I have developed a web application. The user needs to login before using the application. This things are done.
But the problem is when user logout and then click "Back" button in the browser. Control will be transferred back to the user page. I doesnt want this to happen. Instead it is should enter login page.
Jun 13 '07 #1
2 1019
prabunewindia
199 New Member
hi friend,
i am also facing the same problem.
but i temp solved that by checking the user identity in pageload event
if user is not valid then it will go to login page
they can come back to the previous page. but they can't do any function.
if try to do any function then login page will display(bcoz it will check user identity)
Prabu
Hi everybody
I have developed a web application. The user needs to login before using the application. This things are done.
But the problem is when user logout and then click "Back" button in the browser. Control will be transferred back to the user page. I doesnt want this to happen. Instead it is should enter login page.
Jun 13 '07 #2
nateraaaa
663 Recognized Expert Contributor
Hi everybody
I have developed a web application. The user needs to login before using the application. This things are done.
But the problem is when user logout and then click "Back" button in the browser. Control will be transferred back to the user page. I doesnt want this to happen. Instead it is should enter login page.
You need to use a Session variable that contains your user id or user name. When the user logs out you need to set the Session variable to null. Then add code to your page_load event that will check to see if the Session varialbe is null. If the Session variable is null then redirect the user to the login page. If the Session varialbe has a value allow them to view the page.

Nathan
Jun 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: leegold2 | last post by:
Probably a newbie question about "state": My problem is I have a search form, so user enters a keyword <enter>, then this form posts to another page were the result are displayed. But this...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
2
by: Pete | last post by:
I'm writing a web site for a friend. The site is going to have to consist of two ASP.NET applications: one running over HTTP and one over HTTPS. The problem is that the domains will be different,...
4
by: Sam | last post by:
I have an asp.net 2.0 app that uses a sitemap, Master Page, and has several content pages. While this feature has simplified the process of creating a data-driven site menu, it does seem to have...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.