Re: newbie question on forms auth with custom data



Tim,
Thanks for the reply. This custom data is valid only for the "logged
in user", and so it must expire when the ticket does - so I was
thinking they needed to be together. Does that make sense or am I
just not getting it?

On Jan 27, 6:50 pm, "Tim Mackey" <tim.mac...@xxxxxxxxxxxxxxxx> wrote:
hi keith,
sounds like a simple cookie may be the easiest option?
obviously it isn't integrated with the sign-in process, but it may solve the
problem.

tim

"Keith" <kst...@xxxxxxxxxxxx> wrote in messagenews:1169829337.892490.236530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



I have a simple app that uses "simple"formsauthand works quite
nicely. Now all I want to add is the ability to store a handful of
custom data in theauthticket and am very confused about how to do so.
I tried sticking it in a session variable (I come from old asp) but of
course the session and tickets don't expire at the same time...argh.

I am authenticating the user against my a mySQL database using:
---
FormsAuthentication.SetAuthCookie(txtUserName.Text, True)
and
FormsAuthentication.SignOut()
---
It works great, but the docs I have read talk about using global.asax
and the prinicpal and encrypt/decrypting cookies and my head starts to
get fuzzy.

Can someone supply some sample code to store (and then retrieve) some
custom data from theauthticket?- Hide quoted text -- Show quoted text -

.



Relevant Pages

  • Re: Passport expires Dec 2006....
    ... Your I-94 will likely expire at the same time as the passports. ... that time (if you plan to leave the country by that time, ... The round trip ticket requirement only applies to people using the visa ...
    (misc.immigration.usa)
  • Re: Validating Users With Expired Passwords
    ... You haven't said what Kerberos server you're using, ... the username, old password, and new password, and then attempt a password ... ticket, but getting a ticket for a service whose secret key you know, so ... the password expire in the first place. ...
    (comp.protocols.kerberos)
  • Re: Looking for details on how machine password aging works.
    ... Machine account passwords do not expire as user account passwords do. ... e.g. applying group policies requires a ticket. ... his ticket will contain wrong information about that member server. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Passport expires Dec 2006....
    ... I am abit concerned cos my 3 kids passports expire 21 December (they ... Also, we don't have a return ticket per se, for our outward journey we ... return ticket will we be ok upon arrival at immigration in the US? ...
    (misc.immigration.usa)
  • Re: Cookieless forms authentication
    ... The forms auth infrastructure takes care of all the details how to set and authenticate the ticket. ... Use the login control or the FormsAuthentication class if you want to do it manually. ... Here is more information regarding custom data in the ticket: ...
    (microsoft.public.dotnet.framework.aspnet.security)