coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: youth4j on September 21, 2007, 04:48:01 AM

Title: Users are logged-out of the Gallery over short time.
Post by: youth4j on September 21, 2007, 04:48:01 AM
I have searched the forum and could not find anything that can help me with this problem.

My Gallery is 1.4.13 which is bridged to vbulletin 3.6.4

My users are always telling me how furstrated they get because they get kicked out of the gallery in the middle of upload prosess. The users would start the upload process, then they wait untill all the photos upload. After that the upload page has to redirect the user to a page where the user has to write the descriptions for the images and choose the album where they have to place the photos. But some users never get to that page because the gallery logges them out of the system and it tell them the error message " You don't have permission to access this page " so the users can't finish the upload process and the photos never get put on the gallery.

I found out that when a user gets logged out of the gallery, they have to simply go to the forum and then back to the gallery and it logges them back in to the gallery.

How can this problem be fixed ASAP?

Thank you
Title: Re: Users are logged-out of the Gallery over short time.
Post by: Joachim Müller on September 21, 2007, 06:53:15 AM
When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php?topic=24032.0)
Title: Re: Users are logged-out of the Gallery over short time.
Post by: youth4j on September 21, 2007, 07:42:32 AM
I have the following issue when trying to bridge coppermine and vbulletin:

My users are always telling me how furstrated they get because they get kicked out of the gallery in the middle of upload prosess. The users would start the upload process, then they wait untill all the photos upload. After that the upload page has to redirect the user to a page where the user has to write the descriptions for the images and choose the album where they have to place the photos. But some users never get to that page because the gallery logges them out of the system and it tell them the error message " You don't have permission to access this page " so the users can't finish the upload process and the photos never get put on the gallery.

I found out that when a user gets logged out of the gallery, they have to simply go to the forum and then back to the gallery and it logges them back in to the gallery.

How can this problem be fixed ASAP?


Coppermine install: http://www.y4j.org/y4jers/pics/
Forum install: http://www.y4j.org/y4jers/vbforum/
Coppermine version: cpg1.4.13
Forum version: vbulletin 3.6.4
Test user account: vee / password

BridgeManager settings:
Forum URL:  http://www.y4j.org/y4jers/vbforum
Relative path to your BBS's config file:  in the defult directory
Use post-based groups?:  1
Cookie name/preifx (if applicable)
Title: Re: Users are logged-out of the Gallery over short time.
Post by: Joachim Müller on September 21, 2007, 10:01:14 AM
Works as expected for me - I'm not logged out. Can not replicate. Tell your users to tick "Remember me" when logging in (you better pre-tick it for them by editing your forum accordingly).
Title: Re: Users are logged-out of the Gallery over short time.
Post by: youth4j on September 21, 2007, 08:30:38 PM
Try uploading 5 photos and let the user sit on the upload page for more then 10 min or so. Then try uploding the images. I tesed it with this user and It logged me out. I used the "remember me option" when legging-into the forum.

Could it be the cookies setting in the CPG config that have to be set to the forum cookies name? Because right not the cpg cookies are set to cpg11d?

Note: the vbulletin session timeout is set to 3000

QuoteSession Timeout
This is the time in seconds that a user must remain inactive before their login session expires. This setting also controls how long a user will remain on Who's Online after their last activity.
Title: Re: Users are logged-out of the Gallery over short time.
Post by: Nibbler on September 21, 2007, 09:13:29 PM
The vb bridge only reads the session cookie, not the longer term 'remember me' cookie.

http://forum.coppermine-gallery.net/index.php?topic=43454.0
Title: Re: Users are logged-out of the Gallery over short time.
Post by: youth4j on September 21, 2007, 10:22:03 PM
I read the topic you have provided for me. I understand that it reads the session cookie.

Did you try to test with 5 images and wait 10 min. on my site? I want to see if this happends to you also. It's happening to my users and it's happening when I use the username vee and others.

Could you please test it and tell me if it gives you an error message also.
Thanks
Title: Re: Users are logged-out of the Gallery over short time.
Post by: Nibbler on September 21, 2007, 11:06:35 PM
I don't need to test it. I can read the code.
Title: Re: Users are logged-out of the Gallery over short time.
Post by: youth4j on September 21, 2007, 11:53:46 PM
So how can I fix this issue? What would you recomend for me to do to fix this issue?
Title: Re: Users are logged-out of the Gallery over short time.
Post by: Nibbler on September 22, 2007, 12:12:10 PM
Improve the bridge file. By choosing to use propriety software you have prevented me helping you further.
Title: Re: Users are logged-out of the Gallery over short time.
Post by: youth4j on September 22, 2007, 04:15:42 PM
Well thanks for your help, there is nothing I can do to move it back to phpbb because there are lots of other systems that depend on vbulletin now.

If I placed an vbulleting log-in/out box in the header file of cpg. Would that make the users stay on cpg longer?
Title: Re: Users are logged-out of the Gallery over short time.
Post by: Nibbler on September 22, 2007, 04:18:58 PM
A box on its own would do nothing. If it contained code to keep the session alive then that would help prevent users actively browsing from being logged out. It won't help users who are idle for longer than the session timeout though.