Don’t redirect after setting a Session variable

16 Dec

Today I was using a login process to secure some areas of the web page. After a couple of problems with Firefox saying Redirect loop error. The test in IExplorer 8 don’t say any error but simply not work as supposed.

This post was the solution to the strange behavior

Ref:http://weblogs.asp.net/bleroy/archive/2004/08/03/Don_2700_t-redirect-after-setting-a-Session-variable-_2800_or-do-it-right_2900_.aspx

Final Code:

If Session.Item(“ok”) Is Nothing Then
Server.Transfer(“login_reclutadores.aspx”)
End If

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: