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

J

jeljeljel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top