Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Authentication

Authentication

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesecuritybeta-testingquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    boyindie
    wrote on last edited by
    #1

    Hi I was wondering if you would be able to give me some general feedback on my latest issue I have created a user login screen, but now I want to be able to create some sort of authentication, so that I don't require the user to enter there login credentials everytime i need to do somthin in my database. What is the best way of doing this, would issueing a cookie after succesfully loggin in do the job, so it gives me a constant reference to who the user is, allowing me to pull data from tables that is relevant to them any help appreciated boy

    P 1 Reply Last reply
    0
    • B boyindie

      Hi I was wondering if you would be able to give me some general feedback on my latest issue I have created a user login screen, but now I want to be able to create some sort of authentication, so that I don't require the user to enter there login credentials everytime i need to do somthin in my database. What is the best way of doing this, would issueing a cookie after succesfully loggin in do the job, so it gives me a constant reference to who the user is, allowing me to pull data from tables that is relevant to them any help appreciated boy

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Have you tried just using Session variables? You could go the cookies route but make sure the password is not in plain text and the cookie is set to expire with in a short time later. Say like 20 minutes or one hour... Just a quick thought...

      "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

      B 1 Reply Last reply
      0
      • P Paul Conrad

        Have you tried just using Session variables? You could go the cookies route but make sure the password is not in plain text and the cookie is set to expire with in a short time later. Say like 20 minutes or one hour... Just a quick thought...

        "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

        B Offline
        B Offline
        boyindie
        wrote on last edited by
        #3

        No I have never used session variables, not really done anythin like this thats why I asked was gettin millions of different things off the web. All my passwords have been encrpted anyways , sot ahts not a problem

        D P 2 Replies Last reply
        0
        • B boyindie

          No I have never used session variables, not really done anythin like this thats why I asked was gettin millions of different things off the web. All my passwords have been encrpted anyways , sot ahts not a problem

          D Offline
          D Offline
          DarrollWalsh
          wrote on last edited by
          #4

          Session["SomeVariable"] = someVariableIuse; Use session variables to store information like that about the current user. Just note that you have to cast the objects back out of the Session object string MySessionVariable = (string)Session["SomeVariable"];

          Darroll

          1 Reply Last reply
          0
          • B boyindie

            No I have never used session variables, not really done anythin like this thats why I asked was gettin millions of different things off the web. All my passwords have been encrpted anyways , sot ahts not a problem

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            boyindie wrote:

            All my passwords have been encrpted anyways , sot ahts not a problem

            That is fine. You can store it in session variables. Just take a look at Darrol's example.

            "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups