Question Alternate Response.Redirect?

vbnewbi

New member
Joined
Oct 7, 2011
Messages
2
Programming Experience
Beginner
Hi, I'm fairly new to VB.net and this is my first post on this forum.

I'm creating a website in Visual Web Developer 2010 Express in ASP.NET/VB and I'm trying to find out how to alternate a Reponse.Redirect, basically I'm looking to redirect every other visitor to go to a different site.

For example:

Visitor 1 gets: Response.Redirect("http://site-a.com")
Visitor 2 gets: Response.Redirect("http://site-b.com")
Visitor 3 gets: Response.Redirect("http://site-a.com")
Visitor 4 gets: Response.Redirect("http://site-b.com")
and so on

Also, if there is a way to set a cookie for that visitor, so if they visited within let's say the last 90 days, they will go to the same site they visited before, and not be redirected by the Response.Redirect. Thanks for any help on this.
 
You can use application state to store information and use that to determine next action. ASP.NET State Management Overview

Thread moved to ASP.NET section of forums.
 
Back
Top