Logged in as SuperUser and can’t view site
Posted: 02 July 2008 01:40 PM
[ Ignore ]
Grad Student
Total Posts: 54
Joined 06-23-2006
This question may be related to a resolved thread .
I can’t view the site if the site is offline and I’m logged in as a super user.
I’m using an IP address on the Dev server but that should not make a difference.
I tried everything listed in the above thread with no luck.
Anyone have any other ideas?
Signature
Francis F.
Posted: 02 July 2008 01:48 PM
[ Ignore ]
[ # 1 ]
Moderator
Total Posts: 15380
Joined 05-15-2004
You are definitely logged in as a Superadmin? You don’t have a default template that looks like your offline template?
Signature
Everything will be good in the end. If it’s not good, it’s not the end.
Posted: 02 July 2008 01:51 PM
[ Ignore ]
[ # 2 ]
Grad Student
Total Posts: 54
Joined 06-23-2006
I only have one user account set up so I definitely should have access. They are completely different templates.
Signature
Francis F.
Posted: 02 July 2008 05:58 PM
[ Ignore ]
[ # 3 ]
Moderator
Total Posts: 12390
Joined 04-29-2002
Hi, Francis.
It may be a cookie issue.
What I would try is to turn the site back on for a few minutes, and set the default template to have in it:
{if logged_in} < p > You 're Logged in!</p> {if:else} <p>You' re not logged in !</ p > { / if}
And see what happens.
Signature
Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build
Posted: 02 July 2008 08:14 PM
[ Ignore ]
[ # 4 ]
Grad Student
Total Posts: 54
Joined 06-23-2006
Sue, thanks for the reply. Yes…that seems to be the issue. Even though I’m logged in, I’m getting the “YOU’RE NOT LOGGED IN MESSAGE”.
Where should I start the trouble shooting?
Signature
Francis F.
Posted: 02 July 2008 10:23 PM
[ Ignore ]
[ # 5 ]
Research Assistant
Total Posts: 582
Joined 04-29-2008
Greetings,
Sue is referring to your cookies settings . Accessing a site by IP that has a ‘Cookie Domain’ will not allow the session to validate, and you will be unable to login.
Posted: 02 July 2008 10:39 PM
[ Ignore ]
[ # 6 ]
Grad Student
Total Posts: 54
Joined 06-23-2006
Justin,
I can login no problem…that is not the issue. The issue is that even after I login and can access the control panel, the following code on a test page is still spitting out the “you are not logged in” message.
{if logged_in} < p > You 're Logged in!</p> {if:else} <p>You' re not logged in !</ p > { / if}
In terms of my cookie settings on the link you sent, I left them all blank.
I’m not sure what else to check.
thanks for your help.
Signature
Francis F.
Posted: 02 July 2008 10:45 PM
[ Ignore ]
[ # 7 ]
Research Assistant
Total Posts: 582
Joined 04-29-2008
Okay, before I go any further, let me make sure I have my facts straight. =)
You are accessing the site by IP.
You can login, and access the control panel.
You have nothing set for your “Cookie Domain”.
When viewing said template, you receive the ‘You’re not logged in!’ message.
Am I correct in all of these?
Posted: 02 July 2008 10:55 PM
[ Ignore ]
[ # 8 ]
Grad Student
Total Posts: 54
Joined 06-23-2006
You are correct in all of the above.
The one thing that I should add is that this thread started because when the site is turned off, I can’t see it when logged in as a super admin.
Sue asked me to add that code to a template for troubleshooting and I did. I’ve PM’d you the link.
Signature
Francis F.
Posted: 02 July 2008 11:27 PM
[ Ignore ]
[ # 9 ]
Research Assistant
Total Posts: 582
Joined 04-29-2008
Alright, let me get some information from you then.
Version/build of EE. (found at the bottom of every control panel page)
When you goto Admin -> Members and Groups -> View Members. What does the ‘member group’ say for your user?
If you put this in its own template, with nothing else:
{if logged_in} You 're Logged in! {if:else} You' re not logged in ! { / if}
Clear your cookies, browse back to your site, login, and view that template, what do you see?
Grad Student
Total Posts: 54
Joined 06-23-2006
I cleared the cookies and get the same error message. I updated the link I PM’d you as requested.
ExpressionEngine 1.6.3
Build: 20080421
member status:
admin Admin ****@******.com 2008-06-13 2008-07-02 11:37 PM Super Admins
Signature
Francis F.
Moderator
Total Posts: 23528
Joined 05-20-2002
Forgive me if it’s been asked before- for backend cp, are you using cookies or cookies and sessions? You need to be using cookies in order to be logged into the frontend when you log into the backend. If you’re using sessions only backend and cookies frontend- the frontend won’t recognize you as logged in.
Signature
AKA rob1
Help Request Tips * Pro Network
Grad Student
Total Posts: 54
Joined 06-23-2006
Robin, I am using Cookies and Sessions.
However, I am unable to change this in the Control Panel. I followed the instructions on this Thread with no luck.
Currently in my config file I have
$conf[ 'admin_session_type' ] = "s" ;
When I change it to
$conf[ 'admin_session_type' ] = "c" ;
I am unable to login. I can’t get past the login screen.
Not sure where to go now.
Signature
Francis F.
Grad Student
Total Posts: 54
Joined 06-23-2006
Sue,
that still won’t let me login. I’m stuck at the login screen.
Any other ideas?
Signature
Francis F.
Moderator
Total Posts: 12390
Joined 04-29-2002
Are you familiar with a hosts file?
Is the IP address going to resolve to an existing site or a new one?
I also have a template group that I only allow SuperAdmins to see.
When someone else hits that template, they’re taken to a template with a login page embedded in it. The return for the login page goes back to the original page.
Signature
Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build
Grad Student
Total Posts: 54
Joined 06-23-2006
Sue, I am familiar with the HOSTS file.
The IP address will resolve to the current site but I just updated my HOSTS file to point the IP to the domain.
I can set up a test template group for only SuperAdmins.
How can I get around not being able to change the Control Panel Session Type?
Signature
Francis F.
Grad Student
Total Posts: 54
Joined 06-23-2006
When I manually modify my config.php file I am unable to login.
The only setting that allows me to login is this:
$conf[ 'admin_session_type' ] = "s" ;
I’ve tried the following and both times I get stuck at the login screen.
$conf[ 'admin_session_type' ] = "cs" ; $conf[ 'admin_session_type' ] = "c" ;
Signature
Francis F.