Author: jdkuehne | Posted on: 8/4/2008 7:16:32 AM | Views : 279

 I posted this in another forum, but haven't gotten any answers. It seems like this should be fairly straight forward, but so far I can't figure it out.

Working in ASP.NET 2.0 VB, I need to check for the existence of a cookie on entering a page and if it exists, immediately redirect to another page. This is a validation portal and further down on the page, I am also checking for the value of the cookie (in the page behind code) to see if it has been set, and if not, then setting it (this part is working). In other words, the first time a user hits this page, he has has to check a box before being directed to his destination page. On subsequent visits during the same browser session, the user is sent directly to the destination page.

How can I check for this cookie without loading the page? Do I put a script in the <head> of the page? And what would the code look like. I need some guidance here. Thanks. 

...

Go to the complete details ...