auto login of geust

Joined
Aug 18, 2006
Messages
1
Reaction score
0
hi i am relitivly new to asp.net and have tried this following code to see if the user is allready loged in and is they arn't to log them in as a geust

string geust = "Geust";

username.Text = HttpContext.Current.User.Identity.Name;
if (username.Text != null )
{
FormsAuthentication.Authenticate(geust);
}

i get the error
No overload for method 'Authenticate' takes '1' arguments

anyone any help how to do this

thanks

dan
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top