Jump to content

internal API, validatelogin, external login page


alturic

Recommended Posts

Hey guys, I'm using validatelogin (internal api) and while the docs say that it returns userid and hash so you can then set the two session values, it appears as though validatelogin is already setting the session or something? As an example, I have test.php, which strictly does validatesession. It returns successfully, and then if I goto our clientarea.php we're already logged into that client? If I log-out, and refresh clientarea.php we are still logged out, and then if I goto our test page, it validates the user/password combo and then if I go back to clientarea.php the new client is logged in.

 

I was under the impression validatelogin simply returns data and doesn't actually initiate any sessions or anything?

Link to comment
Share on other sites

yes it will initiate login session while validating login details

 

It seems like everything "works", until you close the browser. Anyway to have a remember me option passed to the internal API to it sets the cookie as well when it starts the session?

Link to comment
Share on other sites

Honestly, I think it's something with PHP and sessions. It's writing sessions to the tmp directory for sessions and they work, but remember me isn't working.

 

So at this point, forget any API stuff, going to my install directory and logging in, works. Going to my install directory and logging in with remember me checked, does NOT work when you close the browser and come back.

 

EDIT: Upon further testing, I don't believe it's anything on the server as admin and master client logins all work, and are saved and restored upon browser exit and reopen. It's only the subaccounts that do not "remember me"...

Edited by alturic
Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated