if anyhow my session have ended then how can i start the session again in the code.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. When the session is gone either from the browser or the server, it can’t be reopened, you have to start a new session.
Reopening a session that was closed in the browser would be a potential security risk. Reopening a session that was closed from the server isn’t possible as the data simply doesn’t exist any more.
Every request is done in the scope of a session (unless you specifically make a session-less request), so if the session is closed for any reason, a new one is automatically created at the next request.