Fork me on GitHub

Announcement

The oneye project has been discontinued. You might not expect further fixes and support from us. All community related systems are set to read-only mode. Though feel free to download and use oneye as-is or even fork it over at GitHub.

#1 2012-03-31 14:15:50

jetsetter
Member
Registered: 2012-03-31
Posts: 4

Login problem: "Your session has expired"

Can't get it to work.  When I login using the username "root" and the password I entered during installation, it immediately say "Your session has expired."  Then it goes back to the login dialog box. Browser: Firefox 11.0.  Window XP Home Edition.

Offline

#2 2012-04-01 20:09:01

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

Does your ip address change from time to time? That message is shown, in case your ip address changed (there's a way to turn this off) and in case the last access to the session took longer than one hour (default oneye setting).


Best regards,
Lars Knickrehm

The oneye project.

Offline

#3 2012-04-01 21:48:32

jetsetter
Member
Registered: 2012-03-31
Posts: 4

Re: Login problem: "Your session has expired"

The message "Your session has expired" pops up immediately after trying to log in.  There is no change of IP.  This is very frustrating, as I really want to use oneye.  I also removed oneye from the server and uploaded it again, entered the same root password and I still cannot login.  How do you cut off "Your session has expired"?

Offline

#4 2012-04-02 00:09:23

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

What oneye release do you use?

That code can be found in xxxxxxxxxx/system/services/mmap/main.eyecode near line 111.

ORIGINAL CODE:

if(($_SESSION['AUTH_IP'] != $_SERVER['REMOTE_ADDR']) && sec('protectedIpSessions') || intval(SESSION_EXPIRE) > 0 && time() - intval($_SESSION['ping']) > intval(SESSION_EXPIRE)) {

WORKAROUND (Just skips the check completely!):

if (false) {

I'd like to know what's the problem on your server. Could you try the following three lines and tell us, what of them worked, pease?

TEST A:

if (($_SESSION['AUTH_IP'] != $_SERVER['REMOTE_ADDR']) && sec('protectedIpSessions')) {

TEST B:

if ($_SESSION['AUTH_IP'] !== $_SERVER['REMOTE_ADDR'] && sec('protectedIpSessions')) {

TEST C:

if (intval(SESSION_EXPIRE) > 0 && time() - intval($_SESSION['ping']) > intval(SESSION_EXPIRE)) {

Best regards,
Lars Knickrehm

The oneye project.

Offline

#5 2012-04-02 07:19:28

jetsetter
Member
Registered: 2012-03-31
Posts: 4

Re: Login problem: "Your session has expired"

I'm using oneye_0.8.0.

I performed the tests as you requested:

Test A:   Removes the login box.

Test B:   Login box comes up, but nothing happens after you try to log in.

Test C:    When you try to login, "your session has expired" dialog box immediately comes up.  When you click "ok", a new login box appears.

The workaround:  After I enter User Name "root" and password, and click on "Enter" nothing whatsoever happens.

Offline

#6 2012-04-02 13:50:30

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

It seems your server has a nontypical session related configuration.

What operating system, what server software (apache, iis, ...) and what php version do you use?

Could you send me your php settings, please? You get them by creating a simple php file and accessing it via your browser. Its content should be:

<?php phpinfo(); ?>


Best regards,
Lars Knickrehm

The oneye project.

Offline

#7 2012-04-02 17:36:58

jetsetter
Member
Registered: 2012-03-31
Posts: 4

Re: Login problem: "Your session has expired"

What operating system, what server software (apache, iis, ...) and what php version do you use?

System:   Linux vux143 3.2.1

Server:   Apache/2.2.22

PHP Version 5.3.8

Offline

#8 2012-04-07 08:03:46

Sable
Member
From: France
Registered: 2012-02-20
Posts: 87

Re: Login problem: "Your session has expired"

Hi jetsetter,

jetsetter wrote:

[...]it immediately say "Your session has expired."[...]

This morning, proceeding to some tests on a new SNV installation I encountered the same issue: my soluce was simply to clean my browser (Chrome in that case => "Clear browsing data...") and to reload the page wink

Offline

#9 2012-04-20 21:42:17

Darkspider
Member
Registered: 2012-04-20
Posts: 1

Re: Login problem: "Your session has expired"

HI jetsetter,

please check your webfolder rights.
I had the same problem and fixed it by a "chown root:apache oneyexxxxxx and chmod 755 oneyexxxxxx.
Check also the subfolder rights.

But be careful with .htacces and other security related files!

Darkspider

Offline

#10 2013-08-04 22:37:07

13mhz
Member
Registered: 2013-08-04
Posts: 6
Website

Re: Login problem: "Your session has expired"

hi there!
i am a happy user from eyeos version 1.5. recently i upgraded from 1.9 to eneye 0.90 and 0.9.1-preview-2013-01-25 with problem described above by jetsetter.
in my case solution A and B and WORKAROUND disabled login window, C did absolotely nothing.
i have server LiteSpeed V6.2 and PHP Version 5.3.26 on a shared webhosting.
Hosting support said that oneye is too unique to advice something wise.
Any ideas?

Last edited by 13mhz (2013-08-04 22:39:32)

Offline

#11 2013-08-04 22:43:35

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

You can disable the "SESSION_EXPIRE" in "xxxxxxxxxx/system/conf/system.xml". I guess that's the most wise for now.


Best regards,
Lars Knickrehm

The oneye project.

Offline

#12 2013-08-04 23:18:52

13mhz
Member
Registered: 2013-08-04
Posts: 6
Website

Re: Login problem: "Your session has expired"

again, login window dissapeared.

Offline

#13 2013-08-05 00:05:05

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

Sorry, the Login window disappers?

So now, please tell me everything you do and see:

You open the oneye url. What do you see? The login window? Does it disappear immidiatly?


Best regards,
Lars Knickrehm

The oneye project.

Offline

#14 2013-08-05 00:06:57

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

Did you clean your browser's Cache and what about the file permissions? Please, try setting them to either 755 or 777.


Best regards,
Lars Knickrehm

The oneye project.

Offline

#15 2013-08-05 00:49:36

13mhz
Member
Registered: 2013-08-04
Posts: 6
Website

Re: Login problem: "Your session has expired"

After setting
<SESSION_EXPIRE>0</SESSION_EXPIRE>
and clearing browser cache no login window.
permissions are 755.

Offline

#16 2013-08-05 01:11:58

13mhz
Member
Registered: 2013-08-04
Posts: 6
Website

Re: Login problem: "Your session has expired"

you can check my site - desktop.kapa.pl
as I mentioned before it is a very old installation, upgraded a few times.

Offline

#17 2013-08-05 03:28:50

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: Login problem: "Your session has expired"

Hi 13mhz,

Welcome to oneye!

Would I be right in thinking that before you first posted in this thread, that the login window did appear? If so, could you please undo any changes you may have done as a result of seeing them suggested in this thread? Right now the issue appears to be server side, and I just want to see how it was originally.

Just a word of warning: the continuous upgrading from eyeOS 1.5 has probably taken its toll on your installation. It may be easier to backup your user data and reinstall oneye from scratch. I say 'may' because I have no idea how many users you have, nor do I know which web host you're on, so I realise this may be logistically difficult.

Offline

#18 2013-08-05 05:33:31

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

Hi again 13mhz,

I recently got a new idea:
Please, add the following line of code in front of that "if" statement from one of my previous post with those "test cases" and tell me when you're done.

var_dump($_REQUEST); var_dump($_SESSION);

I guess, session initialization might fail on your server and with that, I will get some output to check if the checksum (an process identifier) can be matched or not.


Best regards,
Lars Knickrehm

The oneye project.

Offline

#19 2013-08-05 14:27:06

13mhz
Member
Registered: 2013-08-04
Posts: 6
Website

Re: Login problem: "Your session has expired"

i have no more than 15 users so if you can tell me what forlders exactly contains all users' data, i would try the option with fresh install + adding users from backup.

Last edited by 13mhz (2013-08-05 14:28:59)

Offline

#20 2013-08-05 14:50:02

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

Did you install third-party applications? Those might be lost when doing a fresh installation. Else you'd just need to back up the folders "accounts", "groups" and "users" smile .


Best regards,
Lars Knickrehm

The oneye project.

Offline

#21 2013-08-05 16:00:14

13mhz
Member
Registered: 2013-08-04
Posts: 6
Website

Re: Login problem: "Your session has expired"

i don't care about apps. i'll reinstall it as needed,
fresh install worked wink

Offline

#22 2013-08-05 22:26:15

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Login problem: "Your session has expired"

Okay, thanks for the Information. Hope it's nothing to do with the updater...


Best regards,
Lars Knickrehm

The oneye project.

Offline

Board footer

Powered by FluxBB