Restarting Session,.
-
Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance
-
Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance
Page.Session.Abort();
In Word you can only store 2 bytes. That is why I use Writer.
-
Page.Session.Abort();
In Word you can only store 2 bytes. That is why I use Writer.
hi digimanus, thanks for your response.. i hope you are talking about the Page.Session.Abandon(); but it will kill the session, how to restart the same?
-
Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance
-
Once a session times out, it is gone. Take a lesson from the story of Dr. Frankenstein and let it die in peace. And then name your files with the session ID in the filename to avoid these problems.
Thanks Mr Gray.. read about what you said.but i don't know is that correct. and thanks again for confirming the same.
-
Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance
Hi, Just confirm me that after session_end, why are you firing that Login Button event?. Stop that event to continue the past session which was gone and take a New Session and store the Values in Users.xml file. I think you got it....:thumbsup: