users@glassfish.java.net

session problem

From: <glassfish_at_javadesktop.org>
Date: Wed, 02 Jun 2010 06:04:14 PDT

Hello, i`m running on gfv3, and i`ve got problem with session expiry - once i log in, the page never ask again for password. Only deleting cookies help. Plz help. here`s web.xml.

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>Display hm?</display-name>
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>1</session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/start.xhtml</welcome-file>
    </welcome-file-list>
    <security-constraint>
        <display-name>operatorContraint</display-name>
        <web-resource-collection>
            <web-resource-name>operatoResource</web-resource-name>
            <description/>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <description>Operator</description>
            <role-name>operator</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>file</realm-name>
    </login-config>
    <security-role>
        <description/>
        <role-name>operator</role-name>
    </security-role>
</web-app>
[Message sent by forum member 'madierfakier']

http://forums.java.net/jive/thread.jspa?messageID=472391