Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Redirect a User when the Session Expires

Posted on 2003-11-12
4
Medium Priority
?
254 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
3 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 480 total points
ID: 10066677

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

810 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