Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
BobInVa

Selling Virtual Products Login/logout

Recommended Posts

Hello,

Perhaps someone can help with this. I've set up the login and logout system and everything works perfectly, all the Paypal sandbox stuff, everything. The logout works with the logout link. My problem is it also logs me out when I click Home or Knowledge is Power. I'm not sure why, maybe the session is being destroyed but I don't see where. My site is hosted on GoDaddy.    

Share this post


Link to post
Share on other sites

I would start by checking the session ID to see if it changes. You should be able to do echo session_id(); Also make sure you're not changing domain names or subdomains (e.g., from www.example.com to example.com).  

Share this post


Link to post
Share on other sites

Thanks Larry. I fixed it. The problem was in index.php. Under require('./includes/config.inc.php'); I had

$_SESSION=array(); so I was clearing out the session data. I commented it out and now working perfectly.

 

Share this post


Link to post
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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
Sign in to follow this  

×
×
  • Create New...