Solved

Redirect a User when the Session Expires

Posted on 2003-11-12
4
209 Views
Last Modified: 2010-05-03
Guys, I need to Redirect a User when the Session Expires to the Login Page,
Only when the session timesout or expires......the user is directed back to the Login Page

Simple as it seems in theory, its not in real, I need help


0
Comment
Question by:Moizsaif123
  • 2
4 Comments
 
LVL 39

Expert Comment

by:appari
Comment Utility
if suppose your Login Username is saved in a session variable UserName then check it like this

if session("UserName")="" then
     response.redirect("loginpage")
end if

add this at the beginning of the page.
0
 

Expert Comment

by:qwertykeyboard
Comment Utility
That probly wouldnt work would it, because surly you will always have a session, but you will have different values. How about tring that, but replacing the

if session("UserName")="" then

with

if session("UserName")="0 then

This would however rely on you creating a session with a value of "1" once they have logged in
0
 
LVL 39

Accepted Solution

by:
appari earned 120 total points
Comment Utility

i object delete request, you can ask any expert from ASP section, my response answers the question.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now