Meaningless Drivel is fun!*
The moose likes JForum and the fly likes Multiple jforum on the same address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Multiple jforum on the same address" Watch "Multiple jforum on the same address" New topic
Author

Multiple jforum on the same address

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello,

I have two jforum installed on the same server but on different webapps (and database of course).

Apparently there is a cookies problem.
I can have both forum on the same browser but there is a problem with the automatique login.
apparently the cookie is the same, and I can't have the auto login on both forums.

Is there a way (beside using another domain) to change this, like changing the cookie name?
[originally posted on jforum.net by pala]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You can change the cookie name in the config file.
[originally posted on jforum.net by GatorBait3]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks, works perfectly now.
[originally posted on jforum.net by pala]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You can set the cookie name for each instance via the cookie.name.data property. I.e., add a line like:

cookie.name.data=jforumUserId2

to the jforum-custom.conf file in one of your webapps.

Note: Sorry.. had this thread open in a browser and didn't refresh before I got back to replying...
[originally posted on jforum.net by monroe]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple jforum on the same address
 
Similar Threads
How integrate the forum
CookieSSO - Not working
Auto-login
RandomNess of cookie
SSO /redirect / anonymous users