Cookies and Redirect.....

Results 1 to 2 of 2

Thread: Cookies and Redirect.....

  1. #1
    Join Date
    Dec 1969

    Default Cookies and Redirect.....

    I&#039m using membership directory and formslogin.asp to login my site users. When any page is accessed and the users has not yet logged in, membership directory redirects them to the formslogin.asp. After they enter their user id and password formslogin.asp calls itself. The user is validated and then redirected to the original page they tried to access. I would like to write user attributes to a cookie before the redirect and I can&#039t get that to work. Anyone have any idea how to write cookies and then do a redirect without loosing the cookie values that were just set?

  2. #2
    Shedao Shai Guest

    Default RE: Cookies and Redirect.....

    Are you setting the expiration of the cookie to a date value<BR>like so:<BR><BR>&#060;%<BR>Response.Cookies("name").Exp ires = #January 01, 1999# <BR><BR>OR:<BR><BR>Response.Cookies("name").Expire s = Date + 365<BR>%&#062;<BR><BR><BR>Check this first. Is the redirect pointing to a different site<BR>or domain? If so then that will cause a problem when reading<BR>cookie values also.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts