Session management functionality in jsf project

i am a beginner programmer and want to know how session management and login logout functionality can be incorporated in jsf project. Right now i can authenticate users from a table in the database but giving the direct url of the pages in the browser takes any anonymous user to the requested page of mine. i want only authenticated users to access the pages while their sessions are active. how is this done and what exactly i need to study to get this functionality in my application.

bundles of thanks in advance.

-------------Problems Reply------------

I suggest looking at something like Seam Security: http://seamframework.org/Seam3/SecurityModule

I was able to resolve this issue. There was a statement in my HibernateUtils class session.close which was commented out and this is now working as expected after removing this comment.

Thanks for your help.

Category:session Views:0 Time:2012-01-19
Tags: jsf session

Related post

  • what's the difference between "dynamic web project" with JSF facet and "JSF project"? 2012-11-15

    When I install "web tools platform" plugins in Eclipse I have a new type of project I can create, called "dynamic web project". In such project I can add JSF facet and then use it to make JSF application. But when I install "jboss tools" plugins I ha

  • JSF Session Management 2011-01-20

    Hi I am making a application Student Information System. I am using JSF. I have problem in session management. My requirement is Admin Logs in Admin See the page where he can search Students with different criteria like first name, last name, class ,

  • JSF Session management and tunning 2011-10-17

    All, I am doing some investigation into how to shrink the amount of session memory our JSF application is consuming on a per user basis. We are using MyFaces 1.1.7 and Tomahawk 1.1.5 running on IBM Websphere 7.0 patch 19. (Not able to upgrade either

  • Do JSF apps really need Shiro's Session management support, when there is already such facility provided by JSF? 2011-10-17

    I am trying to use Shiro for securing my JSF app. After having a brief look at Shiro I am confused whether JSF applications really need the sessions management facility provided by Shiro. Since JSF already creates sessions when responding to sets of

  • Implementing own Session Management in PHP 2009-07-20

    What options are there to implement an own session management in PHP? Is there a nice way to implement a component which performs all session tasks? How can i construct a class which receives the HTTP Request and Response during one request process?

  • Session management via pure CGI 2010-07-13

    I'm currently in the process of writing a little blog / generic posting system using CGI in C as a hobby project and am now in the need of a session management system to authentificate authorized users for posting, editing and similar operations over

  • I am new to PHP. Should I start with some framework or with my own authentication, session management and everything? 2011-07-14

    I am a c/c++ programmer. I have also worked on a website where I used drupal. While using drupal I made some custom modules using PHP. So I am familiar with PHP but not an expert as drupal provided basic functionalities like user-login, session manag

  • How (and when?) to remove a Session scoped bean in JSF 2.0 2012-03-16

    Background: I have a JSF 2.0 application using MyFaces. Using this application, the users will create a complex "Widget" by going through a number of different JSF pages. I am storing the managed bean in the session scope, and the properties get fill

  • jersey security and session management 2009-05-26

    Is there a way for session management or security available programatically in Jersey specification. e.g. like a web-application session management. Or is transaction, session, security all handeled by the containor on which the jersey application is

  • looking for some ASP session management tutorials 2009-06-04

    I need some tutorials or samples which cover the following topics, does anyone have any recommendations? For ASP.Net, how to manage session and especially manage correctly when there is large number of concurrent user requests, access session and var

  • Override session management via deployment descriptor 2009-11-05

    We have a WebSphere Application Server 6.1. Session management is configured with replication and timeout etc... (the obvious). An new project needs some other settings for session management (longer timeout, no replication necessary). There is a che

  • Erlang: Session management and timeout 2009-11-09

    I'm writing http session manager (gen_server based). That server creates and removes session from in-memory storage. I need to remove expired session on timeout. I have two solutions: Create one timer to remove expired sessions from manager Create ti

  • Passing data between managed components in JSF 2010-01-24

    Is it actually possible to pass any data between managed components in JSF? If yes, how to achieve this? Could anyone provide any sample? --------------Solutions------------- There are several ways. If the managed beans are related to each other, cle

  • garbage collection in session will take place when session managing with database in php? 2010-06-02

    How or when garbage collection with session will take place in case of session managing with database in php? I done session management with database. But it is not deleting the user details who completed the time of expiration. --------------Solutio

  • How to consume RESTful web service in my JSF project? 2010-06-06

    As RESTful web services are url based aren't objects, we can't call methods on them. I have a simple web service with only one method in it with is @GET. I saw one screencast and it used some javascript library to consume the web service. But, how do

  • What is session management in Java? 2010-06-18

    I have faced this question in my Interview as well. I do have many confusion with Session Scope & it management in java. In web.xml we do have the entry : <session-config> <session-timeout> 30 </session-timeout> </session-con

  • Any suggestions on a basic PHP library for doing session management and authentication? 2010-07-10

    I am working on a project that exposes a number of web services to the public. Right now I have the serialisation side done (Using ZendAMF) and now I need to do the authentication. I was looking over Zend Session and Zend Auth and they look like they

  • What's the best (Linux-compatible) buffer/session manager for Vim? 2010-07-25

    Is there a good project / session manager for vim? A session (or project) is a named lists of files, e.g. "bitonic_sort" could identify files "~/A/bitonic_sort.sk", "~/B/bitonic_sort.smt2", etc. (rationale) I have a project where I need to edit files

  • How to achieve session management purpose like google in PHP? 2010-09-08

    I mean you can login both https://mail.google.com/ and https://mail.google.com/a/company.com at the same time. The projects I've attended so far haven't involved such kind of logic,how can these two url under the same domain use different $_SESSION?

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.151 (s). 11 q(s)