Win a copy of Rust Web Development this week in the Other Languages forum!

David Lawson

Greenhorn
+ Follow
since May 08, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Lawson

Yeah SSO would be sweet. But I'm limited be the existing application's crappy security model... eventually that is the direction I'd like to move to. But for now I need to carry on with the diy approach.

9 years ago
JSF
So if I need to access the session scoped object for authentication (from JSF, created in JSP) I would need to share the session of both websites, correct?

I have to use Tomcat6 for my container, so I'm assuming I would be setting crossContext if this is the case.

I wanted to try and avoid doing this because I may be deploying this extension on systems where I do not have the permission to change the context settings of Tomcat.

Thanks for your quick reply btw!
9 years ago
JSF
Hi Guys,

I'm still pretty green when it comes to cookies so forgive me if I'm asking some pretty dumb questions ;)

I've got a web application that I've written in JSF 2.0 (Apache). This application extends the functionality of another web application written in JSP. I didn't write the other web application, nor do I want to modify it, save for a bit of JQuery here and there.

The problem I'm facing is that I have no way of ensuring users of my application (the one in JSF) are properly authenticated by the larger application (the one in JSP). The way I got around that was to create a quick meaningless cookie in my JQuery code.

What I would like to do for each request is pull the cookie from the client's system into my JSF application, validate it and allow access to my application. The problem is, for some reason JSF is not "seeing" the cookie. Currently my code is this:



Here are the properties of the cookie:
Name: SomeEstablishedCookieName
Content: SomeUselessContent
Host: localhost
Path: /JSPApplicationDeploymentName/admin/
Send For: Any Type Of Connection
Http Only: No
Expires: <2 minutes from creation>

Any Ideas?

-Dave
9 years ago
JSF