PDA

View Full Version : trying to access cookie in ASP, not working?


jkat
06-05-2006, 05:03 PM
Can someone please help!

I have a site that is 100% in custom ASP, and am using vBulletin as well for my forums. I have a login form in the header of my ASP site taht logs the user into the forums. What I need to do then when they redirect back to the ASP site is check the cookie to see if their logged in, get the Session var and perform a mySQL lookup to retrieve their userid (to store in an ASP session var).

Only problem is that I cant for the life of me figure out how to access the session cookie from vb. I tried:

request.cookies("session")
and ...
request.cookies("/session")

And that just returns nothing.. I checked the vb admin cp and the cookie prefix is just set to "/"

Ive worked with cookies plenty in ASP before, so I feel like Im just missing something really trivial here.

Any help is GREATLY appreciated!! Thanks!

NEVERMIND!! Im retarded, and figured out my problem. (basically took me manually looking at the cookie file to figure out what I was doing wrong)