Richard Hill-7 wrote:
> 
> Could there be a browser-caching issue here? If the URLs are the same,
> but with different views for logged-in and logged out, perhaps being
> cached?
> 
> 
>> > Thiago H. de Paula Figueiredo
>> > Independent Java, Apache Tapestry 5 and Hibernate consultant,
>> developer,  
>> > and instructor
>> > Owner, Ars Machina Tecnologia da Informação Ltda.
>> > http://www.arsmachina.com.br
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@tapestry.apache.org
> 

No didn't seem to make a difference im afraid. I cant think of anything that
would revert the user back to the previous logged in user?

My updated code now looks like:

        @SessionState(create=false)
        @Property
        private User user;
        @Property
        private boolean userExists;
        @Property
        private Transfers transfers;
        
        private boolean adminUser;
        @Inject
        private Request request;
        
        public UpdatePoints() {
                transfers = new Transfers();
                transfers.getTransferWeek();
                transfers.getCloseWeek();
                adminUser();
        }
        
        public boolean adminUser() {
                if(user.getUserType() != null &&
user.getUserType().equalsIgnoreCase("Admin")) {
                                adminUser = true;
                                setAdminUser(true);
                        }
                        else {
                                adminUser = false;                              
                        }
                return adminUser;
        }       

        public boolean getAdminUser() {
                return adminUser;
        }

        public void setAdminUser(boolean adminUser) {
                this.adminUser = adminUser;
        }
        
        public Object onSubmitFromLogout() throws Exception {
                user = null;
                Session session = request.getSession(false);
                if (session != null) {
                       session.invalidate();
                }
                return index;
        }


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Clearing-SessionState-tp4458525p4459081.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to