Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    User Name and password

    How do you include a User name and Password in a hyperlink to a secured site

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    London & Oxford
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your question is not easily answered without knowing more information about the environment which it is to be used in.

    Presumably the username and password are coming from some kind of database on your server or maybe even the authentication system that comes by default on your server platform?

    Why not use a sesssion variable so that you know your user is logged in. You can then check for this variable on each page (using a server-side language such as ASP or PHP) and redirect the user to the login page accordingly.

    If you can explain in a bit more detail what you are trying to do (and the language you are trying to do it in), I'm sure someone here will be able to explain things a bit further.
    As easy as 3.1415926535897932384626433832795028841

  • #3
    Regular Coder
    Join Date
    May 2002
    Location
    London, England
    Posts
    369
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The usual way of doing it is like this

    http://username:password@www.site.com

    Jee
    Jeewhizz - MySQL Moderator
    http://www.sitehq.co.uk
    PHP and MySQL Hosting


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •