But that is simple,just check in your real/default home page if the
user is logged in. So yes throw a redirect exception to his homepage

On 5/17/08, greeklinux <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> you are right, Application.getHomePage() is not the "user home".
> every user has a "user home" page. When user types the URL
> e.g. simpleurl.com, then he will see getHomePage(). If he logs in
> to his account, then he gets redirected to his "user home".
> I only want that, if a user session is still active (user is logged in) and
> the user types in simpleurl.com, that he will be redirected automaticaly
> to the "user home". If user is logged in, then the getHomePage() is
> unimportant.
>
> The same with the login page. If he is already logged in, he should be
> redirected automaticaly. So the most of my unsecure pages will be
> unimportant to a logged in user...
>
>
> Mr Mean wrote:
>>
>> Let me see if i understand you correct.
>>
>> If a user logs in to your site and then navigates away to a site/page
>> not handled by your domain without logging off and thus keeping the
>> session on the server.
>> And then after a little while comes back to your domain (maybe he
>> types the url again in the address bar) while his previous session is
>> still valid. In that case you do not want the user to go to the url he
>> typed (in this example) but go to some other predefined page you call
>> "user home".
>> I take it "user home" is not the same as Application.getHomePage() ?
>>
>> In that case if you add a test to your basepage then how do you
>> determine if the user "comes back" and is not in fact just browsing
>> your app and trying to reach that page?
>> I suppose you could do something with headers to determine the
>> previous url but this is imo not a common situation swarm should be
>> able to do out of the box.
>>
>> But maybe i do not understand you correct and you actually have a
>> valid use case.
>> Hope to hear from you.
>>
>> Maurice
>>
>> On Fri, May 16, 2008 at 8:42 PM, greeklinux <[EMAIL PROTECTED]> wrote:
>>>
>>> Hello,
>>>
>>> I am using Wicket 1.3.3 with SWARM 1.3.0.
>>> I have pages with a common layout (secure and not secure).
>>> I can login and see the secure pages. Now I want to achieve
>>> to be automaticaly redirected to "user home" when a user is
>>> accessing the domain and logged in before...
>>>
>>> I think I have to add a test to the base page and always
>>> check if a user is loggin in with WaspSession...?
>>> Then redirect to the right page? I think this behaviour, if a
>>> user is already logged in, should be handled by SWARM.
>>>
>>> Thanks
>>> --
>>> View this message in context:
>>> http://www.nabble.com/SWARM-Login-tp17281596p17281596.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/SWARM-Login-tp17281596p17294593.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to