Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every one

When a User visits a website, Session Id is created for that user and the Session start event of application object is fired (I mean session start event in the global.asax is fired). Now i want to check System Over there in the session start event, Is the database server is runing and up, then allow him to go in to the website. Otherwise redirect him to an error page that have a message db server is down, and removes his session id from the application.


Regards
TanzeelurRehman
Posted
Comments
Eduard Keilholz 13-Apr-12 3:12am    
Erhm, what is your question?
TanzeelurRehman 13-Apr-12 3:40am    
I want to remove the Session ID of the new entered use in the website based on some criteria.

1 solution

C#
Session.Abandon();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900