UBB.Dev
Posted By: alr Admin problem - 10/13/2001 5:14 PM
Just installed 5.4.4 PHP.

Registered, got my password, logged in.

Who's online shows me with a status of Administrator.

Here is the problem.

When I click on Admin I get the following:

You must login first.
To access this section you must first be logged in. You will be taken to the login screen shortly.

It then sends me to my control panel.

Ideas?

tia

..
Posted By: Rick Re: Admin problem - 10/13/2001 5:46 PM
Are you running in cookie or session mode? Do you have the $thispath variable set properly in the main.inc.php file?
Posted By: alr Re: Admin problem - 10/13/2001 6:11 PM
Fixed it, but don't know how.

Out of frustration I RAPID-clicked on admin, it went thru that time.

Must be my imagination :)

thanks 4 the reply
Posted By: Rick Re: Admin problem - 10/13/2001 6:19 PM
Great! Let me know if it acts up again.
Posted By: alr Re: Admin problem - Theory - 10/13/2001 8:45 PM
This occured to me, it may be helpful if someone else runs into this.

I installed the Perl version first, all was fine. My browser (IE5.5) would then have a cookie.

I then installed the PHP version. Different database, different directories. I had it set to use cookies.

I used the SAME USER NAME both times.

I then had the Admin problem with PHP where I was logged in but it thought I was not.

While the PHP version was up in my browser, I opened a second browser, went to the Perl version and logged in.

I then went back to the PHP browser window, clicked Admin, and it worked.

My guess is that there was someting goofy going on with the cookie?

Most probably won't see it as they probably only install one version.

out

..
Posted By: BarrierMan Re: Admin problem - Theory - 05/09/2002 2:47 PM
After upgrading to Threads 6 br2, I have the same problem.

I had the Zlib compression error handled like described by disabeling the display_errors to Off.
But now, when logging on with my admin account, I come at the main index page. There it shows that I'm loged in as my admin account. I also have the ADMIN button on top.
But everytime when I click it, Ill get:

To access this section you must first be logged in. You will be taken to the login screen shortly.

And I CAN't find a solution to get into the ADMIN part anymore.

Now i have changed from cookie into session, ill be able again to access as an admin.

It must be in the cookie settings.
What can be the problem of it??
Posted By: Rick Re: Admin problem - Theory - 05/10/2002 12:15 AM
It could be your cookiepath setting in the config file. You might want to check this and make sure that it if it isn't empty then it is an absolute path like "/".

Also, if you need to change this you'll probably want to close your browser and manually delete your cookies before trying to login again.
Posted By: BarrierMan Re: Admin problem - Theory - 05/10/2002 7:51 PM
I tried this.......

Unfortunatly this did NOT resolved my problem.....
Posted By: Dalar Re: Admin problem - Theory - 05/21/2002 12:57 AM
I'm now having this happen, on UBBT 5.4.6 as well. I have a new v6 forum installed on another subdomain, and a very altered 5.5 forum on yet another subdomain...

Posted By: ghubbell Re: Admin problem - 05/26/2002 8:04 AM
Same-same. 5.4.6 to 5.5.1 to 6.0 br5. cookie mode and the $thispath variable is set properly. Definetely makes things ockward.


Posted By: Burns Re: Admin problem - 08/23/2002 2:04 PM
Currently i have exactly the same problem...

All internal paths ( like /home/blablabla... ) was changed,
while the URL is the same,
and i simply copied few days old backup,
with changing configuration;
first i did the update 6.02 to 6.03 but now it's the same
with all old files too ( 6.02 )

The path in main.inc.php is correct,
i already deleted all cookies related to the forum,
even deleted the U_SessionId of the admin user
at the same time after closing browser,
but i still get the same
"You must login first.
To access this section you must first be logged in. You will be taken to the login screen shortly."

It also is not connected especially to Admin link,
whereever i click after login
( i'm on "Home" page after login ) -
i got the "Login" not "Logout" link on the top,
what means the forum counts me as not logged in

The issue seems to be quite old,
is there any solution already ?

Posted By: Burns Re: Admin problem - 08/23/2002 2:34 PM
An addition...
There was a preview domain before the server was changed,
so you could see how the new server is working
before the main domain was linked to it.
Currently the preview domain is still available
( like http://<my_own_domain>.de.preview.<provider_domain>.de )
I tested with replacing the the donain with preview domain again,
and it works.
I went to the Admin section, and changed both URL input boxes to the real domain -
i can not login again
( so it is not possible that i messed up something with config files,
i used admin section of the forum to change configuration )
I have access to everything in Forum, just as anonymous user,
by clicking on any link after logging in ( and being in "Home" ),
i'm not logged in anymore !
....................

I'm in office, here i can log in, no problems,
so may be somehow i did not deleted all cookies ?
I sorted them for date...
But anyway, it is not so good solution to tell users
"delete all your cookies" or "try to find and delete all cookies regarding my forum"...
Is there any way to fix it on the server side ?
( withoult asking users to delete thier cookies )
Posted By: JoshPet Re: Admin problem - 08/23/2002 5:05 PM
When I switched hosts.... I had to move my .com address and during the transition we used .net.

Well after the conversion and I switched everything over to .com, my users had nightmares.... it seems the cookies from .com and .net are different.

All was fixed on our end by having the users trash their cookies. But before they did that, they could not remain logged in.

Also... make sure it's using the same domain everywhere. Watch the URL bar. If it changes to a different domain, you won't have the cookie anymore.

I ultimately had to set up a redirect so that anyone still using the .net address of mine would get switched to .com before they started on threads.... because it didn't like using it under 2 domains.

Hope that helps!
Posted By: Burns Re: Admin problem - 08/23/2002 5:56 PM
yep, thank you, it helps to know at least,
that i probably did not do anything wrong.
It is really exactly the same situation:
switch from domain 1 to domain 2 - still OK,
switch back from 2 to 1 - can not stay logged in !
( not sure if this matter, i have choosen "dont remember me " )

I hope UBBThreads team can implement something,
so admins don't need to make all thier users kill cookies
( search for forum cookies, because deleting all cookies in general would be really annoying ),
something that we could do on the server side
to solve this problem...
Posted By: JoshPet Re: Admin problem - 08/23/2002 6:01 PM
Here are some specific directions for finding and deleting your cookies for each operating system in a FAQ forum at my site.

There is also something which is easy for you to install called cookiepal.php.

You can see it work in that link I gave you above. But it will show you all your cookies for the site and delted them.

You can find and download JustDave's cookie pal script here.

Josh
Posted By: Burns Re: Admin problem - 08/23/2002 6:24 PM
Many thanks !
I'm still in office,
i'll try to fix the cookies with you help site when i come back home
If it will be fast and easy it could be acceptable even for the users ...
But anyway i think it would be better to be able choose a special name for cookies files,
so old cookies would be just ignored,
if you change cookies prefix after changing domain back
( i think there was another forum software, that had this option by default in admin... )
So i still hope, anyone from Dev Team respond too...

Oh, and by the way - may i copy your help post/thread
to my forum or my site ?

Burns
Posted By: JoshPet Re: Admin problem - 08/23/2002 6:52 PM
6.1 allows you to customize the cookie prefix to eliminate this type of problem.

Yes, you are welcome to copy anthing from my help forum that you like.

Posted By: Burns Re: Admin problem - 08/23/2002 6:57 PM
great news, thanks again !
Hope it will not take too long till 6.1 release
Posted By: JoshPet Re: Admin problem - 08/23/2002 7:34 PM
I've been testing 6.1 Br1 and it seems pretty stable. Havne't been able to break it.

Once I finish updating my hacks, I may go live with the beta.
Posted By: Burns Still can not stay logged - 08/24/2002 12:29 PM
Hi!
Sorry to say it,
but i followed all instractions and it does not solved my problem,
i still can not stay logged on this computer.

The script does not deletes all cookies,
while i had 4 or 5 all like <myname>[number].txt,
where numbers was 2, 3, 4 and 5
Sure this may be correct since it could be enough if it changed index.dat.
I deleted everything with my doamin name in text
( made a search for domain name in text in Cookies folder ),
but even this did not soved the problem
I have correct cookies setting of IE and the prooven 5.5 SP2 version, win98
I use ZoneAlarm 3, but everything is set correct there,
and anyway i have referer disabled on my board
( $config['disablerefer'] = "1"; )

I now even removed all cookies from Cookies folder,
and only index.dat is left there.
index.dat is altered after the script run, but the .txt file
( new created after new login ) stay the same.
But even if i delete the new .txt file after running the script ( and index.dat is altered ) -
the problem is still there
Posted By: Burns OK... - 08/24/2002 1:01 PM
Well... somehow it is working now...
But only after windows restart;
i also started first win2k ( another partition ),
and checked cookies on w98 partition:
holy crap ! how is it possible there was 7 differnt cookie
.txt files, while i deleted all but one before on win98 ?
OK deleted them now from w2k, logged in w98,
stay logged in forum...

It's sad, i could not find an ultimative solution
( it should be easy and fast for users... )
Posted By: lurch_dup1 Re: Admin problem - 11/16/2002 11:13 PM
With all do respect.

Before directing others to your site, you should issue a warning that it has adult content.

I went there and the first thing I saw was an advert with 2 men having sex.

Not all would want to see that.

Posted By: JoshPet Re: Admin problem - 11/17/2002 12:51 AM
I'd been doing that so long.... I figured every body knew.

All that help/how to stuff has been moved here to the "How To / Site Help" forum, for just that reason.

This is a way old thread.
© UBB.Developers