Can’t stay logged in to site and control panel at same time
Posted: 03 September 2008 04:03 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  09-24-2003

If I’m logged in to my control panel, my admin account gets logged off the site.

Then, when I log on to the site as admin, I’m logged off the cp, and the cp won’t accept my userid/pw as valid. I have to log off the site to log in to the cp.

I’ve tried deleting all my cookies.

Background: I moved from my old host to enginehosting about two weeks ago. However, the site seems to be working flawlessly otherwise.

Profile
 
 
Posted: 03 September 2008 07:21 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6680
Joined  05-07-2007

Barry:

So we are on the same page, what are your EE Version and Build numbers?

Can you check your settings in:  CP Home ›  Admin ›  System Preferences ›  Security and Session Preferences and let us know the settings for, Control Panel Session Type and User Session Type.

Also, can you check:  CP Home ›  Admin ›  System Preferences ›  Cookie Settings do you have anything in there?

Perhaps you should try:  .example.com for your Cookie Domain

-greg

 Signature 
Profile
MSG
 
 
Posted: 03 September 2008 07:31 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  09-24-2003

v 1.6.1 Build:  20071204

control session: session id
user session: cookies

cookie domain: .coastsider.com
no other cookie settings

the site is at http://coastsider.com

Profile
 
 
Posted: 04 September 2008 01:43 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6680
Joined  05-07-2007

Barry: 

For testing purposes, can you try set your control panel session to “cookies” and see if you are experiencing the same behavior?

Thank you,

-greg

 Signature 
Profile
MSG
 
 
Posted: 04 September 2008 05:52 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  09-24-2003

It won’t let me change the setting.  I take the pulldown menu from session ID only to cookies only, click update and it’s back to session ID only.

Some problem on both Windows/Firefox and on Mac/Safari.

Profile
 
 
Posted: 04 September 2008 05:58 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6680
Joined  05-07-2007

Barry:

There are any number of things that could be going on here, but for the first step, I’d recommend that you upgrade to the latest version/build.  Ok?

-greg

 Signature 
Profile
MSG
 
 
Posted: 04 September 2008 06:17 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002

Don’t want to step on Greg’s toes here, who’s doing a fine job, but it sounds like your config.php file has a variable overriding the database preference that’s being saved when you change that setting.

But the primary issue here, if I can distill it is that if you log into your site via the front end, that it will not let you access the control panel?  If that’s the case, this is intentional behavior.  If you log into the control panel, you can access your front-end, as you have just created an admin session, but if you log into the front end of your site, you have created a user session.  Does that describe the behavior you are seeing?

 Signature 
Profile
MSG
 
 
Posted: 06 September 2008 01:45 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  09-24-2003

That did it. I saw your posting after I upgraded the software, which didn’t fix the problem.  I removed the following from the config file, which I’d added based on a forum posting regarding a similar problem.

$conf[‘admin_session_type’] = “s”;

...and it now works correctly.  But I added this after the behavior manifested itself, so it wasn’t the root cause.

Seems to be OK now.

Profile
 
 
Posted: 07 September 2008 09:11 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25625
Joined  05-20-2002

Wonder if something else was going on, adding to the problem.  Might check your cookie domain- in ‘Admin- System Prefs- Cookies’.  Though… not sure how that would relate to uname/pword not being accepted.

Does it look good for now, or want to experiment a bit more with the cp set to sessions?  If so- and you can duplicate the problem, let us know the exact error message you get when you try to login.

Otherwise- we can always blame the gremlins.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 07 September 2008 11:01 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  139
Joined  09-24-2003

I’m prepared to accept gremlins as an explanation.  Thanks for your help.

Profile
 
 
Posted: 07 September 2008 11:11 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25625
Joined  05-20-2002

LOL- yep, me too.  Glad the guys got you squared away!  If it does quirk up on you again, just give us a yell.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120564 Total Logged-in Users: 55
Total Topics: 126614 Total Anonymous Users: 24
Total Replies: 665598 Total Guests: 298
Total Posts: 792212    
Members ( View Memberlist )