• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Redirect to my app login page when SSO cookie is not set

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created my own CookieUserSSO class so that the users of my site can directly logon to Jforum. The URLs look like these:

http://localhost/myapp (My app)
http://localhost/jforum (JForum)

This is working fine, when I login first to myapp then then go to Jforum.

But when I close the browser, open a new one and directly type the http://localhost/jforum URL without login to myapp, I was expecting that myapp login URL will come. But it is still going to the forum list page, but getting some errors (since I am using some session variables). I have set the sso.redirect to http://localhost/myapp but it is not working. Please help me out.

Regards,
Satish.

[originally posted on jforum.net by nosaku]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the code:


[originally posted on jforum.net by nosaku]
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic