The client browser must be required to accept cookies when developers use the session variable, when the ASP starts a session, which will give a cookies to the client and bring a sign (sessionid). With this indication, the ASP will confirm the session after the ASP Therefore, it is maintained. So, when you use the session variable, you need to confirm whether the cookies are accepted. Here I explain two methods:
Method 1: Whenever you are between the two pages, there is a very simple and reliable way: ask a sessionID on the first page to pass it to the next page. SESSIONID comparisons with this page. The same explains that the client browser accepts cookies; different will not be accepted. Very simple. For example, you can put a hidden field in the first page and write the sessionid into it. After submit, remove the sessionID from the page data. Like this: