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
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to auto login into a device using?

    Hi all

    I am trying to find a way to autologin into my access point.

    Currently I have created this code but it never works the first time I load
    the page.
    ALL subsequent loads or reloads work fine. One actually has to reboot the
    access point again to get the problem again and then again only once. This is really a annoying problem.

    <HTML>
    <BODY onLoad="document.mainForm.submit()">
    <FORM METHOD="POST" NAME=mainForm ACTION="http://10.0.1.4/login.html">
    <INPUT TYPE=HIDDEN NAME=TAG4 VALUE=root>
    <INPUT type=HIDDEN name=TAG1 VALUE=>
    </FORM>
    </BODY>
    </HTML>

    Anyone out there with a solution or maybe another way of autologin in !!!!!

    Thanks

  • #2
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Welcome to CF .

    Code:
    <html>
    
    <head>
    <title>Auto Redirection</title>
    </head>
    
    <body onLoad="document.mainForm.submit()">
    
    <form method="POST" name="mainForm action="http://10.0.1.4/login.html">
    <input type="hidden" name="TAG4" value="root">
    <input type="hidden" name="TAG1" value="">
    </form>
    
    </body>
    
    </html>
    That might work, not really sure...

    What happens if the user doesn't have JS enabled though? If you're just trying to redirect them, PHP would be a much better way to go.

  • #3
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi chilipie

    yea it does work. I will thou give your PHP recommendation a try.

    Thanks


  •  

    Posting Permissions

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