INVALID SESSION !

Moderator: crythias

Locked
skydark007
Znuny newbie
Posts: 5
Joined: 19 Dec 2013, 16:21
Znuny Version: 3.3.3
Real Name: Guilherme Henrique

INVALID SESSION !

Post by skydark007 »

Well, every time I get in the system and try to make any changes or click any menu within the system back to the login screen the following error appears:

Invalid session. Please login again.

I wonder what setting I should do to fix this.

Use OTRS 3.3 on Linux Debian Squeeze.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: INVALID SESSION !

Post by crythias »

check OTRS logs. /var/log/syslog, apache error log, etc.

Also, is this a new install or did you upgrade?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
skydark007
Znuny newbie
Posts: 5
Joined: 19 Dec 2013, 16:21
Znuny Version: 3.3.3
Real Name: Guilherme Henrique

Re: INVALID SESSION !

Post by skydark007 »

Installed.

The error that appears is al this:

Code: Select all

Dec 19 13:40:44 CAU-MJ OTRS-CGI-17[7559]: [Notice][Kernel::System::AuthSession::DB::CheckSessionID] SessionID: 'w43z5izy7JUR0nfK9ov9HrQnxJgQStz2' is invalid$
Dec 19 13:40:51 CAU-MJ OTRS-CGI-17[7557]: [Notice][Kernel::System::Auth::DB::Auth] User: root@localhost authentication ok (Method: sha256, REMOTE_ADDR: 192.$
Dec 19 13:41:03 CAU-MJ OTRS-CGI-17[7559]: [Notice][Kernel::System::AuthSession::DB::CheckSessionID] RemoteIP of '6fcisXMd5RnWvhNBMTz4wdoU0lxQdxEc' (192.168.$
Dec 19 13:41:03 CAU-MJ OTRS-CGI-17[7559]: [Notice][Kernel::System::AuthSession::DB::RemoveSessionID] Removed SessionID 6fcisXMd5RnWvhNBMTz4wdoU0lxQdxEc.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: INVALID SESSION !

Post by crythias »

If your sessionID is invalid it's because it's invalid.
That means that it's not being stored or referenced.

It could be crashed tables. It could be configuration changes in how sessions are stored.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
skydark007
Znuny newbie
Posts: 5
Joined: 19 Dec 2013, 16:21
Znuny Version: 3.3.3
Real Name: Guilherme Henrique

Re: INVALID SESSION !

Post by skydark007 »

And how can I fix this?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: INVALID SESSION !

Post by crythias »

You can check logs for tables crashing.

Basically, there aren't any easy answers until you know the cause. The causes are usually inability to write to the table, if it's a database issue, or to the filesystem, if the sessions are handled by filesystem. That is something you'd know better than I. By default, and because you're still asking, it's probably the database. You'd have to check your tables and logs for more information.

Probably also, you're using mysql, so viewtopic.php?f=62&t=23171
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
skydark007
Znuny newbie
Posts: 5
Joined: 19 Dec 2013, 16:21
Znuny Version: 3.3.3
Real Name: Guilherme Henrique

Re: INVALID SESSION !

Post by skydark007 »

It is error tables is not!
I took the test and all are without error, thought it was mysql, already uninstalled and installed it a couple of times altogether!
I do not know what more I can do!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: INVALID SESSION !

Post by crythias »

I'm sorry. Me, neither.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
skydark007
Znuny newbie
Posts: 5
Joined: 19 Dec 2013, 16:21
Znuny Version: 3.3.3
Real Name: Guilherme Henrique

Re: INVALID SESSION !

Post by skydark007 »

rs, Thanks for the help, I'll keep looking!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: INVALID SESSION !

Post by crythias »

Kernel/System/AuthSession/DB.pm:

Code: Select all

    if ( !$Data{UserID} || !$Data{UserLogin} ) {
        $Self->{SessionIDErrorMessage} = 'Session invalid. Please log in again.';
        $Self->{LogObject}->Log(
            Priority => 'notice',
            Message  => "SessionID: '$Param{SessionID}' is invalid!!!",
        );
        return;
    }
If you want more information, change the message:

Code: Select all

            Message  => "SessionID: '$Param{SessionID}' is invalid!!! I got ID:$Data{UserID} and UserLogin:$Data{UserLogin}",
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
wurzel
Znuny guru
Posts: 3274
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: INVALID SESSION !

Post by wurzel »

Hi,

deleting all caches in browser often helps for me.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Locked