|
-
Mar 30th, 2007, 10:52 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Logged In
Hi,
I'm writing my first real asp.net, using vb, web site. I'm using a Master page and I have a Login section in my page (I didn't use the Login Control becasue i couldn't get it to look the way I wanted...anyone else not like having control of that control?) anyway, I was on IM with a friend, asking him to check it out. He registered, logged in and said everything seemed to be working. That is when I went to the web and launched the site as well. When the page came up I was logged in as him automatically...I thought that seemed really odd. Any ideas as to y that would happen and what i might do to prevent it from happening again?
I haven't done any programming to handle any browser other than IE yet and I know he was using mozilla if that might help.
Thanks
Gene
I'm not a bad guy, just bad at being a good guy!
-
Mar 30th, 2007, 11:14 AM
#2
Re: Logged In
It is near impossible to help you, not knowing how any of your authentication process works.
-
Mar 30th, 2007, 11:22 AM
#3
Thread Starter
Addicted Member
Re: Logged In
I'm using a SQL table. If the user name & password match I use an Application varible to hold user name and unique user id. I write the info to a cookie if they check remember me.
That's all i have. If you need more info I wouldn't know what to tell you. Sorry. Got to be a little frustrating helping us newbie's...if it's any consolation, i'm just as frustrated...but I am slowly learning so there is a little light at the end of the tunnel!
Thanks
Eug
I'm not a bad guy, just bad at being a good guy!
-
Mar 30th, 2007, 09:49 PM
#4
Re: Logged In
Post your code so we can help you.
Did you look into ASP.NET built-in authentication system? it's very powerful and does what you are looking for and much more.
HoraShadow
I do like the reward system. If you find that my post was useful, rate it.
-
Apr 2nd, 2007, 04:57 AM
#5
Re: Logged In
 Originally Posted by Eugenious
I'm using a SQL table. If the user name & password match I use an Application varible to hold user name and unique user id. I write the info to a cookie if they check remember me.
Use a session variable rather than an application variable.
-
Apr 2nd, 2007, 05:19 AM
#6
Re: Logged In
Eugenious, for info: A session variable is available for each individual user(session) whereas an application variable only exists once for the entire application.
-
Apr 10th, 2007, 02:56 PM
#7
Thread Starter
Addicted Member
Re: Logged In
Not only did that help but it all made sense to me as well! Thanks
I'm not a bad guy, just bad at being a good guy!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|