• 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
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

JSESSIONID Issue

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I enabled SSO auto login feature everything is working fine.
By default jsessionid is appened in the url. If jsessionid is appended in url i am not able to click on any link in Mac Safari Browser.

By default safari is accepting cookies.I don't why jforum application still appending jsessionid at the end of the url even it accept cookies.

I enabled cookies="ture" in tomcat configuration.

Now after auto login still it is showing jsessionid in the url but if i click any link that doesn't have jsessionid next time onwards it is not showing jsessionid in the url.

Is there any way to remove/disable jsessionid in the url after auto login?


Thanks,
Gopal
[originally posted on jforum.net by gopal]
 
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
Hi,

Note: Safari would just hang on AJAX URLs that contained the character ";".

I did a temporary fix to make it work in safari browser.

In JForumContext.java i updated the encodeURL(String url, String extension) with the following line:

return ((String)response.encodeURL(ucomplete)).replaceAll(";","%3B");

Hope it may useful to someone in the future.

Thanks
Gopal

[originally posted on jforum.net by gopal]
 
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
In every first request the jsessionid is appended, as the container still does not have the confirmation that the browser supports cookies.

In subsequent requests the param will not be added anymore.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Yes, you are right but in safari browser if url contains ; then it is not allowing to click on any of these links. It's a temporary fix.

Gopal
[originally posted on jforum.net by gopal]
 
What's that smell? I think this tiny ad may have stepped in something.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic