have a problem with sessions
-
i am new to ASP.NET Now i am creating a login page i am using sessions to display the username Session["str"] = TextBox1.Text; i am using this Session["str"] where ever i need to display the username The Problem is when i click logout the sessions are not removed how to clear the sessions. i want help......... :|
-
i am new to ASP.NET Now i am creating a login page i am using sessions to display the username Session["str"] = TextBox1.Text; i am using this Session["str"] where ever i need to display the username The Problem is when i click logout the sessions are not removed how to clear the sessions. i want help......... :|
The Abandon method destroys all the objects stored in a Session object and releases their resources use , session.Abandon ; or set session["str"]=null;
-
The Abandon method destroys all the objects stored in a Session object and releases their resources use , session.Abandon ; or set session["str"]=null;
-
i am new to ASP.NET Now i am creating a login page i am using sessions to display the username Session["str"] = TextBox1.Text; i am using this Session["str"] where ever i need to display the username The Problem is when i click logout the sessions are not removed how to clear the sessions. i want help......... :|
-
You can Clear the session or abondon the session as Session.Abandon(); or Session.Clear(); for back button, You have two option a: disable the back button b: clear the hostory both can be done using javascript
Cheers!! Brij
Brij wrote:
You have two option a: disable the back button b: clear the hostory
option a to my knowledge it cant be done , Please provide the code for it option b. Yes , Playing with windows history can restrict user from going back
If You win You need not Explain............ But If You Loose You Should not be there to Explain......
-
i have got it but have one problem after logging out when i press back button every thing remains the same which should not happen how to do this
kiranreddy wrote:
every thing remains the same which should not happen
You are seeing browser cached version of the page. This can't be stopped effectively.
Navaneeth How to use google | Ask smart questions
-
You can Clear the session or abondon the session as Session.Abandon(); or Session.Clear(); for back button, You have two option a: disable the back button b: clear the hostory both can be done using javascript
Cheers!! Brij
Brij wrote:
You can Clear the session or abondon the session as Session.Abandon(); or Session.Clear(); for back button,
No. No events are fired when back button is pressed.
Brij wrote:
disable the back button
No reliable methods are available.
Brij wrote:
clear the hostory
Not possible.
Navaneeth How to use google | Ask smart questions