Click here to Skip to main content
15,902,892 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Session logout problem Pin
VijayVishwakarma15-Oct-08 0:37
VijayVishwakarma15-Oct-08 0:37 
GeneralRe: Session logout problem Pin
N a v a n e e t h14-Oct-08 21:48
N a v a n e e t h14-Oct-08 21:48 
AnswerRe: Session logout problem Pin
N a v a n e e t h14-Oct-08 21:52
N a v a n e e t h14-Oct-08 21:52 
AnswerRe: Session logout problem Pin
eyeseetee14-Oct-08 22:00
eyeseetee14-Oct-08 22:00 
AnswerRe: Session logout problem Pin
Sandeep Akhare14-Oct-08 22:30
Sandeep Akhare14-Oct-08 22:30 
AnswerRe: Session logout problem Pin
TommyTomToms15-Oct-08 1:39
TommyTomToms15-Oct-08 1:39 
GeneralRe: Session logout problem Pin
VijayVishwakarma15-Oct-08 1:49
VijayVishwakarma15-Oct-08 1:49 
GeneralRe: Session logout problem Pin
TommyTomToms15-Oct-08 2:06
TommyTomToms15-Oct-08 2:06 
You can place it on all the pages you are using in the Page Load event. (probably could to this in the HttpModule)

protected void Page_Load(object sender, EventArgs e)
{
Response.Expires = 0;
Response.ExpiresAbsolute = DateTime.Now;

if (Session["User"] != null)
{
//some other code...
}
else
{
//Redirect to Login Page
}
}

The on the Logout button if the Sessions are "Abandoned" and the user tries navigating Back to this page he will be re-directed (asked for login credentials)...

Hope this helps
GeneralRe: Session logout problem Pin
VijayVishwakarma15-Oct-08 3:12
VijayVishwakarma15-Oct-08 3:12 
GeneralRe: Session logout problem Pin
VijayVishwakarma15-Oct-08 3:16
VijayVishwakarma15-Oct-08 3:16 
GeneralRe: Session logout problem Pin
TommyTomToms15-Oct-08 3:49
TommyTomToms15-Oct-08 3:49 
GeneralRe: Session logout problem Pin
TommyTomToms15-Oct-08 3:59
TommyTomToms15-Oct-08 3:59 
GeneralRe: Session logout problem Pin
Abhishek Sur15-Oct-08 21:16
professionalAbhishek Sur15-Oct-08 21:16 
GeneralRe: Session logout problem Pin
VijayVishwakarma17-Nov-08 18:17
VijayVishwakarma17-Nov-08 18:17 
GeneralRe: Session logout problem Pin
VijayVishwakarma17-Nov-08 18:30
VijayVishwakarma17-Nov-08 18:30 
QuestionRunning VLC-Unicast Stream from C#/ASP.Net Pin
deezZ14-Oct-08 19:04
deezZ14-Oct-08 19:04 
QuestionHow to read Semicolon seperated CSV File (German Cultured Pin
Prasanna Kumar Pete14-Oct-08 18:02
Prasanna Kumar Pete14-Oct-08 18:02 
AnswerRe: How to read Semicolon seperated CSV File (German Cultured Pin
Steve Echols14-Oct-08 19:48
Steve Echols14-Oct-08 19:48 
GeneralRe: How to read Semicolon seperated CSV File (German Cultured Pin
Prasanna Kumar Pete14-Oct-08 19:52
Prasanna Kumar Pete14-Oct-08 19:52 
GeneralRe: How to read Semicolon seperated CSV File (German Cultured Pin
Steve Echols14-Oct-08 19:59
Steve Echols14-Oct-08 19:59 
GeneralRe: How to read Semicolon seperated CSV File (German Cultured Pin
Abhishek Sur15-Oct-08 21:22
professionalAbhishek Sur15-Oct-08 21:22 
QuestionHas anyone figured out why the the Confirm dialog box doesn't work in the following article Pin
Tina P14-Oct-08 17:59
Tina P14-Oct-08 17:59 
AnswerRe: Has anyone figured out why the the Confirm dialog box doesn't work in the following article Pin
Eduard Keilholz14-Oct-08 20:09
Eduard Keilholz14-Oct-08 20:09 
GeneralRe: Has anyone figured out why the the Confirm dialog box doesn't work in the following article Pin
Tina P14-Oct-08 20:17
Tina P14-Oct-08 20:17 
GeneralRe: Has anyone figured out why the the Confirm dialog box doesn't work in the following article Pin
Eduard Keilholz14-Oct-08 21:09
Eduard Keilholz14-Oct-08 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.