Author Topic: Login/logout problem  (Read 8973 times)

0 Members and 1 Guest are viewing this topic.

Offline Joss

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • All about digital photography
Login/logout problem
« on: April 28, 2010, 11:53:19 PM »
Hello,

could you help me resolve the problem.
Some days ago I transfered to new shared hosting and yesterday there a problem appeared with login/logout or session (I don't know, i'm nube in sessions field).

Description of problem:

1. Login on index page.
2. Click any new image on index.
3. Click return to index from details.
4. Repeat some times 2-3

As result - I see myself as logouted on a some step (e.g. on index) and logined on some (e.g on another page).
Sometimes the browser exit/run again helps with the problem. In this case I still logined on each page.

Instead 2-4 you can simply reload index a few times after login - and status changes to logout.

Also sometimes it is need more then one click on logout link to real logout.

Could you help me? May be there some wrong server side settings?

Gallery: http://gallery.imagemaster.ru
Login: test
Pass: test

(login link is "Войти" is the top link on left corner)

php (5.2.6):
http://gallery.imagemaster.ru/ phpinfo.php
remove space .................^...........


Server works as mod_apache or Fast_CGI (the problem still in any mode).

.htaccess
Code: [Select]
#php_flag register_globals Off
#php_flag session.use_trans_sid off

SetEnv TZ Europe/Moscow
ErrorDocument 404 /

AddDefaultCharset windows-1251

# Begin search engine friendly links code
RewriteEngine On
#RewriteBase /
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}

RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}

RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.([0-9]+)\.htm$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.htm$ categories.php?cat_id=$1&%{QUERY_STRING}

RewriteRule ^img([0-9]+)\.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.htm$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}

RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}

RewriteRule ^author([0-9]+)\.htm$ member.php?action=showprofile&user_id=$1&%{QUERY_STRING}

# End search engine friendly links code

XBitHack full
#SecFilterScanPOST Off
« Last Edit: April 29, 2010, 03:44:54 AM by V@no »
Digital Photo Gallery: http://gallery.imagemaster.ru

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Login/logout problem
« Reply #1 on: April 29, 2010, 03:37:53 AM »
I've been browsing your gallery for about 5 minutes, never got logged out. Have you tried different browser or even different computer? Maybe clear cookies in your browser?

P.S.
I've tried login with and without checkbox that saves username/pass in cookies - both works fine.
« Last Edit: April 29, 2010, 03:48:05 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: Login/logout problem
« Reply #2 on: April 29, 2010, 09:25:00 AM »
// hmm, i also tried , it works fine for me as well  :wink:

the rightclick protection seems tobe not working properly  :? i clicked on a image, 1st the msgbox appears, then the rightclick menu apears ..
correct the js as well ;)

I'm Back :)

Offline Joss

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • All about digital photography
Re: Login/logout problem
« Reply #3 on: April 29, 2010, 11:51:01 AM »
V@no, GaYan,
thank you guys!

But the impression that the problem had gone away somewhere this morning. Thank you very much!

: Have you tried different browser or even different computer? Maybe clear cookies in your browser?

This problem had many users of my gallery. Also I tried Opera 10.53 and IE 8. All worked fine on denwer (localhost) and problem was only on the server.
Thank you for hint about cookies, I didn't try it.

: correct the js as well

Thanks, I'll do it.
Digital Photo Gallery: http://gallery.imagemaster.ru

Offline viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Login/logout problem
« Reply #4 on: September 25, 2010, 11:48:16 PM »
Hallo Zusammen,

ich habe ein Problem mit dem Login / Logout. Nach dem login oder logout kommt ein weißes Browserfenster. Es wird leider nicht wieder die index.php aufgerufen.
Ich habe mir den Fehler sicher mit einen MOD geholt. Weiß aber nicht welcher. Was kann ich in die Login oder logout eintragen um die index.php gezielt aufzurufen. Der Login oder Logout funktionieren nämlich.

Version 1.7.7

Danke schön für die Mühe.

Holger

Edit: Hat sich erledigt. HAb den Fehler gefunden. Danke trotzdem
« Last Edit: September 26, 2010, 11:57:08 PM by viadata »

Offline kispingvin

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Login/logout problem
« Reply #5 on: October 26, 2010, 01:07:03 PM »
Hello!

I have the same problem but not in such a bad shape.

Everything works just fine, but for some random reason, some users including myself ( rarely ) get logged out randomly.

This thing happens rarely, but many users have been complaining for sometime about it being anyoing.

Is it truly a problem with the server? And if so, how do i fix/track down this? Clearing cookies doesnt really help.
The session time option in ACP doesnt really work by the way, for some reason it WILL log you out in x time no matter
how many minutes you type in there.

-Martin

Offline juewei

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: Login/logout problem
« Reply #6 on: December 19, 2010, 08:58:02 PM »
bin ich hier richtig?

mein Problem ist dass ich teilweise nicht lange im login bleibe und rausfliege.

kann man irgendwo einstellen das der login länger ist?

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: Login/logout problem
« Reply #7 on: December 19, 2010, 10:25:49 PM »
Hi,

ob du eingeloggt bleibst sollte mit der sessionid zusammenhängen,
die hat default eine gültigkeit von 15 Minuten, diesen Wert kannst
du im ACP in den Einstellungen ändern.

Machst du das mit Auto Logon?

Dann ist ggf. das Cookie mit Schuld, das Cookie (die Cookies) speichern
(die letzte Session ID, deinen letzten Besuch, deine User ID und den
Passwort Hash (der leider auf MD5 basiert, tut hier aber nix zur Sache,
steht aber trotzdem hier, klingt komisch is aber so  :mrgreen:)

Cookies aktiv (wahrscheinlich)?


Gruß Jens
« Last Edit: December 19, 2010, 10:43:44 PM by x23piracy »

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline juewei

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: Login/logout problem
« Reply #8 on: December 20, 2010, 04:22:55 AM »
danke, ich schaue mal...
das im AC hatte ich übersehen, mal schauen ob es dann besser geht

Danke