Google Answers Logo
View Question
 
Q: sessions not being passed after ASP.net 1.1 Upgrade. ( No Answer,   0 Comments )
Question  
Subject: sessions not being passed after ASP.net 1.1 Upgrade.
Category: Computers > Software
Asked by: bengali-ga
List Price: $25.00
Posted: 01 Dec 2004 08:27 PST
Expires: 31 Dec 2004 08:27 PST
Question ID: 436617
My sessions recently stopped being passed and i am wondering if an IIS
setting on windows 2003 would have caused it.

Currently i had an upload image page which would upload the image and
create session variables of the images name. title. description and
resolution which it would pass to the next page. On this page you
could preview the image, make any last minute changes then hit Create
and it would enter the info.
The image upload and everything is still fine so its not a permission
problem. the image is uploaded and resized. however in page 2 the
session variables are clearly not being passed becuase they are not
displayed anymore on the page like they are supposed to be and the
info therefore is never entered into the database.

this is an all asp system. here is a sample of the session code. 
im thinking this has something to do with the way IIS6.0 handles
sessions in general but dont know why it worked before. perhaps
asp.net 1.1 did somethning to my iis settings that i didnt know about.

the first page which uploads the image and passes the sessions uses.

Response.Redirect "upload2.asp?cat=" & Uploader.Form("cat") & "&name="
& Uploader.Form("name") & "&description=" &
Uploader.Form("description") & "&fileurl=" & File.FileName &
"&imagewidth=" & Uploader.Form("imagewidth") & "&imageheight=" &
Uploader.Form("imageheight")

the second page which recieves the session variables uses

<%
' *** Edit Operations: declare variables

' MM_editAction = CStr(Request("URL"))
MM_editAction = "upload3.asp"
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>

and 

 ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And
Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy