Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-12-2015, 01:01 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 225
iTrader: 0 / 0%
Angry Link wrongfully logging out user

I have some links in my site meant to lead other pages in the site but instead, they log out the user when clicked first time and when the user logs in again, they will then lead to the intended pages.
I am sorry I am currently using a mobile phone so can't post the code but in your opinion what could be the possible cause?
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-12-2015, 05:16 AM
ScriptMan's Avatar
ScriptMan ScriptMan is online now
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 14,016
iTrader: 4 / 100%
I may not say this in the correct terms but I suspect it is a failure to carry the session (logged in) forward to the page in question.

I would have to look at some pages to be more precise and I don't have time to do that this morning.
 
Reply With Quote
  #3  
Old 02-12-2015, 05:44 PM
CMRaper's Avatar
CMRaper CMRaper is offline
Contributing Member
 
Join Date: 09-11-13
Location: Philippines
Posts: 112
iTrader: 0 / 0%
Like what ScriptMan said, maybe the session is not activated on the destination page, or it is being cleared out. If you can post the code of the pages, we can check the problem.
 
Reply With Quote
  #4  
Old 02-15-2015, 11:10 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 225
iTrader: 0 / 0%
you are both right. I solved it. i had to re-create the links and this time without http://
 
Reply With Quote
  #5  
Old 03-21-2015, 10:31 AM
CleverSurveys CleverSurveys is offline
Junior Member
 
Join Date: 03-19-15
Posts: 21
iTrader: 0 / 0%
Were you perhaps linking to a different subdomain? Such as www dot example dot com instead of example dot com? If so, you should have your traffic redirect to the canonical domain (I suggest www dot website dot com) for SEO purposes if nothing else. You can also explicitly set the cookies domain to your root domain if you use multiple subdomains.

Sorry about the weird examples. The forum complains that I'm posting links if I use .
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems logging into cPanel Kesava Web Hosting Forum 15 09-08-2010 10:31 PM
Logging in After a long Time seogirl V7N Forum Support 7 08-10-2009 02:32 AM
PHP error logging framework and reports thing2b Coding Forum 0 02-06-2007 04:42 PM
Anyone having problems logging in? kiwidesigner Google Forum 1 06-17-2004 09:26 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:30 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC