...

View Full Version : Session redirect...



dagaffer
02-03-2003, 09:23 PM
How would I redirect to an URL that is in a Session variable? (Should b easy)
Thanx, Gaffer:thumbsup:

raven
02-03-2003, 09:43 PM
Response.Redirect Session("varName")

dagaffer
02-03-2003, 09:51 PM
hmm, strange, i tried that 1st & it gave me some error so I probably set up the Session wrong. Thanx, neway:thumbsup:

Roelf
02-04-2003, 07:51 AM
you cannot redirect if some of the response is already written to the browser, use Response.buffer = true, this way all the response is buffered until its complete or the response.flush method is used. That way you can redirect in every place of your asp. Otherwise you have to do the redirect before the first html is sent to the browser

dagaffer
02-04-2003, 08:41 PM
Ah! Thanx! That works now!:thumbsup:

whammy
02-04-2003, 10:45 PM
This is another nice thing about using subs to display HTML like I do - you never have to worry about that! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum