Clicking a link brings me back to login page

Hi All,

I just got RT 3.6.6 installed on gentoo and followed the installation
instructions step by step. I am able to get to the login page and
login using root, but when I click on any link it brings me back to
the login screen. I can then log in and it will take me to where I
need to go but I have to do this after every link I click. I tried
searching the archives but didn’t find any answers. Does anyone know
a solution to this?

-Juan

Juan Mas wrote:

Hi All,

I just got RT 3.6.6 installed on gentoo and followed the installation
instructions step by step. I am able to get to the login page and
login using root, but when I click on any link it brings me back to
the login screen. I can then log in and it will take me to where I
need to go but I have to do this after every link I click. I tried
searching the archives but didn’t find any answers. Does anyone know
a solution to this?

Sorry to be so short, but it’s late and I’m off to bed, but it sounds
like a cookie problem as it’s cookies that keep you logged in.

Check your browsers list of cookies for one made by RT for the domain
you’re accessing it on. Check that it remains through a page change.
Kind Regards,

Mike Peachey, IT
Tel: +44 (0) 114 281 2655
Fax: +44 (0) 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK

Confidential

First thing I checked. I have tried in both IE7 and Firefox.On Tue, Mar 4, 2008 at 4:27 PM, Mike Peachey mike.peachey@jennic.com wrote:

Juan Mas wrote:

Hi All,

I just got RT 3.6.6 installed on gentoo and followed the installation
instructions step by step. I am able to get to the login page and
login using root, but when I click on any link it brings me back to
the login screen. I can then log in and it will take me to where I
need to go but I have to do this after every link I click. I tried
searching the archives but didn’t find any answers. Does anyone know
a solution to this?

Sorry to be so short, but it’s late and I’m off to bed, but it sounds
like a cookie problem as it’s cookies that keep you logged in.

Check your browsers list of cookies for one made by RT for the domain
you’re accessing it on. Check that it remains through a page change.

Kind Regards,


Mike Peachey, IT
Tel: +44 (0) 114 281 2655
Fax: +44 (0) 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com
Confidential


-Juan

Juan,

I've found that this is more common than I thought. There are at least 

a couple possible reasons, one has to do with setting up your sessions
table (MySQL) and the other has to do with how FireFox and IE handle
cookies along with Apache. This is how we handled it:

1) make a change in RT_SiteConfig.pm
"Set($WebSessionClass, 'Apache::Session::File');"

2) Set SetupSessionCookies overrides (type �vi SetupSessionCookies� 

); as follows:

Modify �my $session_properties;� by adding �Transaction   => 1,� to the 

code at end before the �else� line."

This did it for us, but we don't use the DataBase SESSION Table.
Hope this helps.

Kenn
LBNLOn 3/4/2008 1:22 PM, Juan Mas wrote:

Hi All,

I just got RT 3.6.6 installed on gentoo and followed the installation
instructions step by step. I am able to get to the login page and
login using root, but when I click on any link it brings me back to
the login screen. I can then log in and it will take me to where I
need to go but I have to do this after every link I click. I tried
searching the archives but didn’t find any answers. Does anyone know
a solution to this?

Thanks Kenn. Your solution worked. I uncommented the WebSessionClass
in SiteConfig. SetupSessionCookies already had the line in the code.
Does anyone know any pros/cons to this setup? Thanks.

-JuanOn Tue, Mar 4, 2008 at 4:55 PM, Kenneth Crocker KFCrocker@lbl.gov wrote:

Juan,

    I've found that this is more common than I thought. There are at least

a couple possible reasons, one has to do with setting up your sessions
table (MySQL) and the other has to do with how FireFox and IE handle
cookies along with Apache. This is how we handled it:

    1) make a change in RT_SiteConfig.pm
    "Set($WebSessionClass, 'Apache::Session::File');"

    2) Set SetupSessionCookies overrides (type "vi SetupSessionCookies"

); as follows:

    Modify "my $session_properties;" by adding "Transaction   => 1," to the

code at end before the “else” line."

    This did it for us, but we don't use the DataBase SESSION Table.
    Hope this helps.

Kenn
LBNL

On 3/4/2008 1:22 PM, Juan Mas wrote:

Hi All,

I just got RT 3.6.6 installed on gentoo and followed the installation
instructions step by step. I am able to get to the login page and
login using root, but when I click on any link it brings me back to
the login screen. I can then log in and it will take me to where I
need to go but I have to do this after every link I click. I tried
searching the archives but didn’t find any answers. Does anyone know
a solution to this?

-Juan

Juan Mas wrote:

Thanks Kenn. Your solution worked. I uncommented the WebSessionClass
in SiteConfig. SetupSessionCookies already had the line in the code.
Does anyone know any pros/cons to this setup? Thanks.

-Juan

Juan,

    I've found that this is more common than I thought. There are at least

a couple possible reasons, one has to do with setting up your sessions
table (MySQL) and the other has to do with how FireFox and IE handle
cookies along with Apache. This is how we handled it:

    1) make a change in RT_SiteConfig.pm
    "Set($WebSessionClass, 'Apache::Session::File');"

    2) Set SetupSessionCookies overrides (type "vi SetupSessionCookies"

); as follows:

    Modify "my $session_properties;" by adding "Transaction   => 1," to the

code at end before the “else” line."

    This did it for us, but we don't use the DataBase SESSION Table.
    Hope this helps.

Part (1) of this keeps session data in files under $RT_HOME. It should
work fine, so long as you only have one web front-end. It won’t be as
scalable if you build up thousands of session files in the same directory[*]
due to the time taken to find the needed file in the directory listings.

An alternative is to alter the database schema:

ALTER TABLE sessions MODIFY a_session longblob ;

See: [rt-users] Vanishing attachment content

Which is necessary as I understand it where you have a default
character set of utf8 such that certain data when treated as text
expands it to 3 bytes per character. Treating it as a binary blob allows
it to be retrieved unaltered.

Part (2) is part of the distributed RT code nowadays, and that patch no
longer needs to be applied.

Cheers,

Matthew

[*] Running a cron job to reap old session data, whether on disk or in
the database, is a good idea.

Dr Matthew Seaman The Bunker, Ash Radar Station
PGP: 0x60AE908C on servers Marshborough Rd
Tel: +44 1304 814890 Sandwich
Fax: +44 1304 814899 Kent, CT13 0PL, UK

Juan Mas wrote:

Hi All,

I just got RT 3.6.6 installed on gentoo and followed the installation
instructions step by step. I am able to get to the login page and
login using root, but when I click on any link it brings me back to
the login screen. I can then log in and it will take me to where I
need to go but I have to do this after every link I click. I tried
searching the archives but didn’t find any answers. Does anyone know
a solution to this?

Make sure the following are set correctly in your RT_SiteConfig.pm file:

Set( $WebBaseURL , “http://rt.path.domain.com”);
Set( $WebPath , “/”);

My WebPath was set wrong. It was based on an older configuration where
it was set to /rt3.
When it was set to the older config I would always go back to the login
page. when I clicked on a link.

After I changed it it worked fine.