Jump to content

If a user is authenticated via htaccess or php session..


cgm225

Recommended Posts

If a user is authenticated via htaccess or php session, is there a way to have the other authentication system know so a second login is not required?

 

So, for example, if someone is logged into htaccess, then PHP would know and not request another login.  Or, if one was logged into a php session, htaccess would be able to tell, and not require another login.

 

Thank you all in advance!

Link to comment
Share on other sites

No, but you can make PHP do what you call .htaccess authentication. See: http://www.php.net/manual/en/features.http-auth.php

 

Actually it isn't the .htaccess file that does the authentication, you just tell the webserver to send certain headers which the browser will respond to with an authentication dialog, but you can read about that in the link above (I think, but it does say how to do so with PHP nonetheless).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.