Jump to content

SessionUID on different domain?


HostStratus

Recommended Posts

Hey guys, here's what I'm workin with:

<?php
require("clients/dbconnect.php");

if ($_SESSION['uid']) {
echo "logged in";
} else {
echo "NOT logged in";
}
?>

This is http://www.hoststratus.com/test.php, but my WHMCS installation is in the clients/ directory under the subdomain https://clients.hoststratus.com(notice the SSL). I simply cant get the external page to pickup the sessionUID even though /clients/dbconnect.php is the directory location. I was assuming it was an issue with the subdomain and/or SSL certificate.

 

Any help is much appreciated! Thanks!

Link to comment
Share on other sites

I doubt that support doesn't care. What you're doing is outside the product so they won't support it. Quite rightly too.

 

The session has nothing to do with the database/connection. The session is in PHP. And sharing them between domains (a sub domain is still a different domain) isn't possible afaik.

Link to comment
Share on other sites

I doubt that support doesn't care. What you're doing is outside the product so they won't support it. Quite rightly too.

 

The session has nothing to do with the database/connection. The session is in PHP. And sharing them between domains (a sub domain is still a different domain) isn't possible afaik.

Yeah, that's understandable. I wasn't saying they should care, but just as you stated, it's outside the realm of a typical WHMCS installation and they seem to have bigger things to worry about(it's been like 72hours since I've gotten a reply).

 

I saw a couple people saying the same thing. So chances are you're probably right; the external domain is my main problem.

 

Do you know of any way around this possibly? Any way to transfer over that session? That subdomain is on the same host(it's a local directory). I've seen it done so I know it's possible, many sites have it setup this way I believe.

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