Default Authentication Ticket Expiration

R

ryan.d.rembaum

I have what I hope will be a quick question:

If I use a NON-PERSISTENT default authentication ticket (i.e. One
created by redirectfromlogin with persistent = false) what is the
default expiration of said ticket? Is it based on the session timeout
in my web.config file?

I am trying to create a custom authentication ticket and want it to be
exactly like the default ticket except with some data in the userdata
section. How would I do this (especially in terms of expiration time).
For example, if the expiration of a non-persistent ticket is generally
the same as the session expiration, how could I specify this in code.
If it is based on some other default, how can I specify that?

Thanks,
Ryan
 
B

Brock Allen

If I use a NON-PERSISTENT default authentication ticket (i.e. One
created by redirectfromlogin with persistent = false) what is the
default expiration of said ticket? Is it based on the session timeout
in my web.config file?

It's based upon the timeout attribute of the <forms> element in web.config.

Dom has lots to say about the forms authentication ticket and cookie (although
it's more about persistent cookies):

http://www.leastprivilege.com/FormsAuthPersistentCookies20RTM.aspx

-Brock
DevelopMentor
http://staff.develop.com/balle
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top