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

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top