close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Auto-Login Not Working

Thread began 1/21/2011 9:31 am by dlovas275157 | Last modified 1/21/2011 11:06 am by Jason Byrnes | 1997 views | 5 replies |

dlovas275157

Auto-Login Not Working

Can't understand why Auto-Login is not working on my attached login page.

Can someone take a quick look and let me know what is missing.

THanks,

Attached Files
index.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

it looks like it is configured correctly.

Are cookies being saved when the remember me option is set?


using FireFox with the web developer toolkit, There is a view cookie option that will allow you to see the cookies that are set, use this to see what the Auto login cookies are being set to.

Sign in to reply to this post

dlovas275157

Jason,

It appears my 4 cookies (AutoLoginUN, AutoLoginPWD, RememberMePWD, RememberMeUN) are being set properly upon the first login. Then when I logout, and go back to the login page, the cookies are still set, but it is not auto-logging in.

I placed the following code at the bottom of the login page to show if my cookies hold value upon reload:
Cookies<br>
<?php echo((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"") ?><br>
<?php echo((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"") ?><br>
<?php echo((isset($_COOKIE["RememberMePWD"]))?$_COOKIE["RememberMePWD"]:"") ?><br>
<?php echo((isset($_COOKIE["RememberMeUN"]))?$_COOKIE["RememberMeUN"]:"") ?>

Any further advice.

Sign in to reply to this post

Jason ByrnesWebAssist

try changing line 70:

php:
if((((isset($_SESSION["id_users"]) && $_SESSION["id_users"] != "")?"LoggedIn":"") == "")&&(((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"") != "")&&(((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"") != "")){



to:

php:
if((((isset($_COOKIE["AutoLoginUN"]))?$_COOKIE["AutoLoginUN"]:"") != "")&&(((isset($_COOKIE["AutoLoginPWD"]))?$_COOKIE["AutoLoginPWD"]:"") != "")){
Sign in to reply to this post

dlovas275157

Jason,

That worked!! Great...thanks for your help, I will keep this code change for future projects.

-Dan.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...