Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:22:07+00:00 2026-06-04T16:22:07+00:00

This is it: I have a website using JSP and deployed on tomcat. What

  • 0

This is it: I have a website using JSP and deployed on tomcat. What I want to do now is to setup a MediaWiki with a sso system. Ie I want users to access my first site and my MediaWiki with the same account, and don’t need to login again when moving from one to the other.

Currently the two systems share the account list using a Ldap system ( setup with openldap ). When connecting on the JSP, it stores a JSESSIONID parameter in a cookie, and when connecting to MediaWiki, it seems to store 3 parameters: wikidb_session, wikidbUserID and wikidbUserName.

What’s the best way to make the two systems sharing the session cookie?

Alexis

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:22:09+00:00Added an answer on June 4, 2026 at 4:22 pm

    You can’t share the session cookie because each applications (Mediawiki and your JSP site) have its own.

    What you can do it’s to have a single sign on module that woud be used by each of your applications.

    You can look at JASIG CAS (Central Authentication Service) http://www.jasig.org/cas .

    Steps :

    1. install the CAS Server application that will handle authentication. It’s a java web application that you can install on your same servlet engine that already run your JSP site.
      CAS Server has multiple authentication handler like LDAP.

    2. add the CAS Client to your JSP site. CAS Client is available as a servlet filter that will redirect non authenticated users to CAS Server where users will authenticate, then CAS Server will redirect users to the initial application with a special parameter (service ticket). The CAS Client filter will use the parameter to contact the CAS Server to get the login of the user. It could require a little work for you, as you have to move the authentication part in your JSP site to the CAS Server.

    3. add the CAS Client to your Mediawiki. CAS Client is also available as a PHP Client (PHPCas). Mediawiki seems to be CAS ready : http://www.mediawiki.org/wiki/Extension:CASAuthentication

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a website using JSP. I want to have the website available in
I have developed simple website using Tomcat and Java. Now I'm trying to add
I have this website iloveforwards.com created using drupal. I would like to have a
I have enabled google Minify in code igniter using this library on our website.
I have this website I am designing and I want to make it to
I am designing a small website using HTML + JSP. This is my first
I have this code: public article GetArticleByWebSite(string webSite) { using (var context = new
Here is how our Tomcat webserver is currently setup. We are using jsp for
I have a simple web service. This is consumed in a website using VS
We have created a database driven website using PHP with set cookies and now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.