You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Vladimir Lisin <vl...@emgas.gazprom.ru> on 2005/01/26 15:15:44 UTC

J1.5: Remember me/auto-logon facility

Hi all

Please, can anabody comment and suggest the solution in next  problem ?

I am filling the Login and PSW fields,  flagging  the checkbox " Remember 
me".
Thereafter I see the cookie "lisin@10.5.6[2].txt"  in directory 
C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
Then I make logout and see that cookie "lisin@10.5.6[2].txt" was deleted.
And at second login I haven't  any   "/auto-logon" :-(((((
How must work  the "Remember me/auto-logon facility" in J1.5 ?
The next is the fragment of my JR.properties:
.........................................................................................
   # Remember me/auto-logon facility
automatic.logon.enable=true
#    number of seconds until logon expires (2592000 = 1 month, 
30*24*60*60)
automatic.logon.cookie.maxage=2592000
automatic.logon.cookie.comment=Jetspeed automatic logon cookie
#    domain, blank means use getServer to derive it.  Is of the form 
.foo.com.
automatic.logon.cookie.domain=
#    path, blank means use getContextPath, default to / - all paths
automatic.logon.cookie.path=/
#    specifies when the random portion of the cookie is regenerated-
#     - firstlogon, means it is only generated the first time the users 
#                   requests this feature, useful when you want to allow
#                   them to use the feature across computers
#     - everylogon, means it is regenerated upon each successful logon
#                   useful for getting a little added security (default)
automatic.logon.cookie.generation=everylogon

# automatically save user state on logout
automatic.logout.save = true
.................................................................................................


Thanks in advance.
Vladimir 

J1.5: Can't EditAccount

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi, all

I have unexpected  problem.
 In template  top_loggedIn.jsp is the link "<a href="<jetspeed:uriLookup 
type="EditAccount"/>"  .
After clicking on this I have the next errors:
-----------------------------------------------------------------------------------------------------------------------------------------------

Error encountered processing a template: 
/layouts/html/default.jsporg.apache.jasper.JasperException: 
/WEB-INF/templates/jsp/screens/html/ErrorNoScreenData.inc(16,0) Page 
directive: can't have multiple occurrences of contentType at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94) 
at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428) 
at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:140) 
at 
org.apache.jasper.compiler.Validator$PageDirectiveVisitor.visit(Validator.java:161) 
at org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:280) at 
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028) at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070) at 
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076) at 
org.apache.jasper.compiler.Node$Root.accept
.
..........................................................................................................
Please, can anabody comment and suggest the solution in next  problem ?
Thanks in advance.
Vladimir 

RE: J1.5: Remember me/auto-logon facility

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi,
Mark and Dan !
Very thanks for help :-))))
I assumed another, more simple,  order for  the auto-logon.
And I shall look at source file.

Best regards,  Vladimir


RE: J1.5: Remember me/auto-logon facility

Posted by Mark Orciuch <ma...@ngsltd.com>.
Logging out deletes the cookie. To keep the auto-login active you must
not logout. This way if you close the browser, reopen it and go back to
the portal URL, you will be automatically logged in.

Best regards,

Mark Orciuch - morciuch@apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://portals.apache.org/


> -----Original Message-----
> From: Vladimir Lisin [mailto:vlisin@emgas.gazprom.ru] 
> Sent: Wednesday, January 26, 2005 8:16 AM
> To: Jetspeed Users List
> Subject: J1.5: Remember me/auto-logon facility
> 
> 
> Hi all
> 
> Please, can anabody comment and suggest the solution in next  
> problem ?
> 
> I am filling the Login and PSW fields,  flagging  the 
> checkbox " Remember 
> me".
> Thereafter I see the cookie "lisin@10.5.6[2].txt"  in directory 
> C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
> Then I make logout and see that cookie "lisin@10.5.6[2].txt" 
> was deleted.
> And at second login I haven't  any   "/auto-logon" :-(((((
> How must work  the "Remember me/auto-logon facility" in J1.5 
> ? The next is the fragment of my JR.properties: 
> ..............................................................
> ...........................
>    # Remember me/auto-logon facility automatic.logon.enable=true
> #    number of seconds until logon expires (2592000 = 1 month, 
> 30*24*60*60)
> automatic.logon.cookie.maxage=2592000
> automatic.logon.cookie.comment=Jetspeed automatic logon cookie
> #    domain, blank means use getServer to derive it.  Is of the form 
> .foo.com.
> automatic.logon.cookie.domain=
> #    path, blank means use getContextPath, default to / - all paths
> automatic.logon.cookie.path=/
> #    specifies when the random portion of the cookie is regenerated-
> #     - firstlogon, means it is only generated the first time 
> the users 
> #                   requests this feature, useful when you 
> want to allow
> #                   them to use the feature across computers
> #     - everylogon, means it is regenerated upon each successful logon
> #                   useful for getting a little added 
> security (default)
> automatic.logon.cookie.generation=everylogon
> 
> # automatically save user state on logout
> automatic.logout.save = true 
> ..............................................................
> ...................................
> 
> 
> Thanks in advance.
> Vladimir 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: J1.5: Remember me/auto-logon facility

Posted by Dan Moore <mo...@yahoo.com>.
Hi Vladimir,

I believe you want to look at this source file:
src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java
and
src/java/org/apache/jetspeed/modules/actions/JLogoutUser.java
to see how autologin is implemented on 1.5.

>From a cursory examination, it appears that logging out actually
removes the auto login cookies.  If you want to test auto login, try
logging in, then closing your browser, then opening your browser and
revisiting the site.

Hope this helps.

Dan

--- Vladimir Lisin <vl...@emgas.gazprom.ru> wrote:

> Hi all
> 
> Please, can anabody comment and suggest the solution in next  problem
> ?
> 
> I am filling the Login and PSW fields,  flagging  the checkbox "
> Remember 
> me".
> Thereafter I see the cookie "lisin@10.5.6[2].txt"  in directory 
> C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
> Then I make logout and see that cookie "lisin@10.5.6[2].txt" was
> deleted.
> And at second login I haven't  any   "/auto-logon" :-(((((
> How must work  the "Remember me/auto-logon facility" in J1.5 ?
> The next is the fragment of my JR.properties:
>
.........................................................................................
>    # Remember me/auto-logon facility
> automatic.logon.enable=true
> #    number of seconds until logon expires (2592000 = 1 month, 
> 30*24*60*60)
> automatic.logon.cookie.maxage=2592000
> automatic.logon.cookie.comment=Jetspeed automatic logon cookie
> #    domain, blank means use getServer to derive it.  Is of the form 
> .foo.com.
> automatic.logon.cookie.domain=
> #    path, blank means use getContextPath, default to / - all paths
> automatic.logon.cookie.path=/
> #    specifies when the random portion of the cookie is regenerated-
> #     - firstlogon, means it is only generated the first time the
> users 
> #                   requests this feature, useful when you want to
> allow
> #                   them to use the feature across computers
> #     - everylogon, means it is regenerated upon each successful
> logon
> #                   useful for getting a little added security
> (default)
> automatic.logon.cookie.generation=everylogon
> 
> # automatically save user state on logout
> automatic.logout.save = true
>
.................................................................................................
> 
> 
> Thanks in advance.
> Vladimir 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org