ASP Session variable is getting lost with SSL

Results 1 to 3 of 3

Thread: ASP Session variable is getting lost with SSL

  1. #1
    subhendu mohanty Guest

    Default ASP Session variable is getting lost with SSL

    I am developing a website with WindowsNT,IIS4,ASp.My firstpage is a LogOn page. It consists of two text boxes with ID and password in side a form.The action of the form is a URL having HTTPS://servername/validate.asp. The validate.asp page is SSL enabled. I also want to store the UserID for furthere processing. If it is used as session variable it is getting lost due to transiton from HTTP to HTTPS. So can you pls send some pointer to get rid of this problem.<BR><BR>Thanks<BR>subhendu

  2. #2
    jason Guest

    Default RE: ASP Session variable is getting lost with SSL

    nothing you can do. when you switch from http to https you&#039re essentailly moving to a different server. sessions are tracked using cookies, and cookies can only be accessed from the same server, and secure protocol is quite careful about this sort of thing. you&#039ll hvae to pass values with input fields or querystrings instead<BR><BR>jason

  3. #3
    Subhendu Guest

    Default RE: ASP Session variable is getting lost with SSL

    There is another problem occurs without using SSL.The problem is described below.<BR>I have a html form having one text box and one submit button. When i<BR>submit the form it passes through the secured channel. The code is like<BR>this<BR>&#060;form Action="https://ip address of server/result.asp" method =post&#062;<BR>&#060;input type=text name=UID&#062;<BR>&#060;input type=Submit value=Submit name=Submit&#062;<BR>&#060;/form&#062;<BR><BR>I want to print the value of Text box in result.asp page. I have used the<BR>following code.<BR>&#060;% Userid=Request.form("UID")<BR>response.write(Useri d)%&#062;<BR><BR>After submitting the form the result.asp page comes without the value of<BR>"Userid". But if i press the Refresh button after the result.asp comes to<BR>browser i am getting the value of Userid.<BR><BR>my server(IIS4) has a valid certificate.I have set the result.asp page as<BR>"Secured channel required".<BR><BR>subhendu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts