Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > ASP.NET forms authentication – created a ticket, but how does FormsAuthentication know about it?

Reply
Thread Tools

ASP.NET forms authentication – created a ticket, but how does FormsAuthentication know about it?

 
 
jeljeljel
Guest
Posts: n/a
 
      09-09-2008
I have seen several examples where a FormsAuthenticationTicket is
constructed and added to a manually created cookie. However, I can’t
connect the dots to see how FormsAuthentication “knows” about this
ticket that has been created? The only method that I can see might do
this is the SetAuthCookie, but the ticket isn’t passed as a parameter.

I need to create my own FormsAuthenticationTicket because I need it to
expire at the end of the day. The web.config setting only allows me
to specify a scalar minute value. I need it to expire at...

DateTime.Now.AddDays(1).Date;

Can someone shed some light for me please?

Thanks,
John
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
Using forms authentication, but you can get at a file if you know the name of it. Mufasa ASP .Net 4 05-01-2007 02:55 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM



Advertisments