Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   admin cp not recognizing login (http://www.mysidiaadoptables.com/forum/showthread.php?t=3899)

rhiecakes 12-07-2012 08:19 PM

admin cp not recognizing login
 
this happens to me a lot. the admin cp won't recognize me at all, after logging into both my site, and the CP itself. it gives me this error:
"An error has occurred.
You do not have permission to access Admin Control Panel."
even after logging into my site, refreshing, logging out and back in, or changing my password and logging out/in again.
sometimes it lets me log in, most of the time, it does not. i don't know if it has something to do with cookies or caching, but it is very frustrating. i'm on chrome and i have cookies enabled so i can't understand why it keeps doing this.

Hall of Famer 12-07-2012 09:51 PM

umm so you can log in from time to time but in most circumstances you cannot? Thats strange, are you using the url with 'http://'?

LucasA33 12-09-2012 01:19 AM

Same issue I am having. Just logs me out randomly..

powerchaos 12-09-2012 07:03 AM

1 Attachment(s)
the script works with cookie's and sesions in the db (unless it is changed in 1.3.2 )

if you randomly log out then it means a few things

1) your cookie does not match the sesion stored in the db
2) your cookie does not exist anymore

in google chrome , try to clean your cach and cookie's and try again to login
also try to use a second browser ( internet explorer for example ) as it is sometimes a problem with google chrome itself (happends to me to with some sites)

you can also try to shut down google chrome and re open it (full browser close) and see if that works

also to see if cookie's are stored or not you can check it on this site

http://pets.demonpower.com/session_show.php

it should look something like this
Code:

$_COOKIE['PHPSESSID'] => d332a782d61c36ce258b011cb0d26cae ()
$_COOKIE['mysuid'] => 1 ()
$_COOKIE['myssession'] => c8459e64acf7bf060ba516032a1ece91 ()

also to get this to work for you , you need to use the same script but then on your site
some cookie's only works on the site itself and not on other sites (like in this case )

so here is the script

download it and upload it to the main folder of the myadopts install
then go to that site and you should see the same as above ( if logged in) or a lot less (if logged out)

if it does not show anything even after a login then your browser is not accepting the cookie's

Greetings From PowerChaos

Abronsyth 12-09-2012 09:03 AM

I was getting this same problem when trying to login...let me guess, it says "now redirecting you..." or something like that and it doesn't redirect you?

If this is what it is, I got around this by just clicking the url bar so it's highlighted, and hitting the "enter" button on the keyboard and it worked fine :)

LucasA33 12-09-2012 12:43 PM

Alright, so the real answer is because you are most likely not using WWW in your domain.
I had the same issue, then figured it out.

Notice when you go to the admin panel, you are seeing WWW.
If you don't see WWW when you are on your site, that is your issue.

powerchaos 12-09-2012 01:00 PM

if it is the www problem then put this in your htacces

then you always get redirected to WWW if you like it or not :D (to prevent it from happening again)

Code:

RewriteCond %{HTTP_HOST} ^YourSite.com$
RewriteRule ^(.*)$ http://www.yourSite.com/$1 [R=301]

replace yoursite.com with your site

Greetings From PowerChaos

Hall of Famer 12-09-2012 01:16 PM

Oh yeah, LucasA33 told me about this last night when I was making the Itemdrop Mod. The script requires the usage of www and sometimes even http:// to work properly. Hopefully theres a good solution to that, it mostly has to do with the pagination system.

LucasA33 12-09-2012 01:30 PM

And members page scrolling doesn't work properly. Should be an easy fix for me though.


All times are GMT -5. The time now is 07:44 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.