Solved

Redirect a User when the Session Expires

Posted on 2003-11-12
4
222 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
ID: 9736743
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
ID: 9759711
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
ID: 10066677

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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 115
VBA error replacing data 6 40
Best way to parse out a json string in VB6? 10 172
SLMGR Switches Are Not Working On KMS Host 3 94
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

809 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