Session variables was lost using response.redirect

Discussion in 'ASP General' started by Dornel, Jun 14, 2006.

  1. Dornel

    Dornel Guest

    Hi all,
    My session variables are lost when I using response.redirect at first time...
    In the second time, the problem not exists.

    example in page 1(create session and redirect):

    session("nome") = "teste"
    response.redirect = "page2.asp"

    page 2(show content of session):

    response.write session("nome")

    The first time the session will be empty, coming back the page and try
    again, the session will be with value.

    This problem occurred when the server is migration the windows 2000 for
    windows 2003.

    The code not was modified.
     
    Dornel, Jun 14, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. fadi
    Replies:
    1
    Views:
    1,149
    Mark MacRae
    Jul 21, 2003
  2. Mark MacRae
    Replies:
    1
    Views:
    1,049
  3. Jon Paugh
    Replies:
    1
    Views:
    4,079
    Jon Paugh
    Nov 30, 2004
  4. Replies:
    2
    Views:
    7,630
  5. =?Utf-8?B?RGFiYmxlcg==?=

    loosing session variables after Response.Redirect

    =?Utf-8?B?RGFiYmxlcg==?=, Jul 20, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,196
    Karl Seguin [MVP]
    Jul 20, 2006
  6. TCook
    Replies:
    3
    Views:
    12,165
    TCook
    Aug 15, 2006
  7. Sal
    Replies:
    1
    Views:
    1,642
  8. Alex
    Replies:
    2
    Views:
    269
    Guest
    Oct 20, 2003
Loading...