Results 1 to 7 of 7

Thread: [RESOLVED] Logged In

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Dubuque, IA
    Posts
    134

    Resolved [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!

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Logged In

    It is near impossible to help you, not knowing how any of your authentication process works.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Dubuque, IA
    Posts
    134

    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!

  4. #4
    Fanatic Member
    Join Date
    May 2005
    Posts
    608

    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.

  5. #5
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Logged In

    Quote 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.

  6. #6
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Dubuque, IA
    Posts
    134

    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
  •  



Click Here to Expand Forum to Full Width