Greets again -- quick question:

I'd like to be able for users to login to my application by first coming to the
main "www.mysite.com" side of the application and then redirecting to their own
vanity url-prefixed URL e.g. "foo.mysite.com" -- the problem *seems* that if I
log the user in on www (by calling getContext().setUser(foo) then
RedirectResoution to http://foossite.mysite.com the user is no longer set. 

get and set user are trivial enough:

        public void setUser(User currentUser)
        {
                getRequest().getSession().setAttribute("user", currentUser);
        }

        public User getUser()
        {
                return (User) getRequest().getSession().getAttribute("user");
        }

if i first go to foossite.mysite.com/Login.action i can of course login so the
logic is working, but that's *not* an option here since I need the user to login
first to see which URL to redirect them to...

is it that my redirect is a FQDN - e.g. http://foo.mysite.com? is that blowing
session up or is this in the context? 

thoughts?

thanks!

dan 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to