Flex Session & login logout

I have a web application in flex with back end as LCDS. I want to execute a function in server when the client logs out/close the browser.
   How can I implement this ( calling a severside function while user close the browser without properly logging out)?
Can anybody help me?

thank you for your advice yogi, but I would be more understanding if tried in the form of training / tutorials, can you tell the link that discusses login / logout session using flex and java
thanks

Similar Messages

  • Session Login and Logout in jsp page

    hi
    i am developing jsp page
    i completed except logout.jsp page
    my login page is in Jsp format and then business Logic in servlet and then get method & set method in bean.java
    i have login and then it sucess page there i have singout button
    if i sign out it should go to login page
    how to do
    how to make session invalidate
    how to get session id
    i have one more doubt i should check session invalidate each jsp page
    regarding session login and logout in jsp
    if anybody knows please give me a piece of code regarding login and logout
    Regards
    Akshatha

    This is part of your filter class now you need login.jsp page
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="Stylesheet" type="text/css" href="/PAS/css/site.css"/>
        <title>Automation System | Login Page</title>
    </head>
    <body>
    <div align="center">
        <h1>Photint Automation System</h1>
    </div>
    <br/><br/><br/>
    <center>
        <table border="1" cellpadding="0" cellspacing="0" width="40%" bgcolor="FFFFFFFF">
            <thead>
                <tr>
                    <th align="left" height="30"> <h3>    Login</h3></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <div align="center">
                            <form name="LOGIN" action="/PAS/LoginServlet" method="POST">
                                <table border="0">
                                    <tbody>
                                        <tr>
                                            <td height="15"></td>
                                            <td height="15"></td>
                                            <td height="15"></td>
                                            <td height="15"></td>
                                        </tr>
                                        <tr>
                                            <td height="30"></td>
                                            <td align="right" height="30">User Name : </td>
                                            <td align="left"  height="30"><input type="text" name="USERNAME" value="" size="35"  /></td>
                                            <td height="30"></td>
                                        </tr>
                                        <tr>
                                            <td height="30"></td>
                                            <td align="right" height="30">Password : </td>
                                            <td align="left"  height="30"><input type="password" name="PASSWORD" value="" size="35"  /></td>
                                            <td height="30"></td>
                                        </tr>
                                        <tr>
                                            <td height="50"></td>
                                            <td height="50"></td>
                                            <td align="center" height="50"><input type="submit" value="Login" name="Login" />  <input type="reset" value="Reset" name="Reset" /></td>
                                            <td height="50"></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </center>
    <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
    <br/><br/><br/>
    <center>Copyright &copy; 2009 Photint FZ LLC</center>
    <center>Powered by Ali Jamali</center>
    <center>Version : 1.0</center>
    </body>
    </html>And you need loginServlet.java
    package com.ali.util.filter;
    import com.ali.entity.user.UserEntity;
    import com.ali.util.HibernateUtil;
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class LoginServlet extends HttpServlet {
        private static final long serialVersionUID = 1L;
        protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            String username = request.getParameter("USERNAME");
            String password = request.getParameter("PASSWORD");
            if (username == null || username.length() == 0) {
                System.err.println(" Username textfeild is empty ..... !");
                RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                dispatcher.forward(request, response);
                return;
            if (UserRegistry.isUserLoggedIn(username)) {
                System.out.printf("User [%s] is already logged in. \n", username);
                RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                dispatcher.forward(request, response);
                return;
            UserEntity user = null;
            try {
                user = (UserEntity) HibernateUtil.load(UserEntity.class, username);
                if (user == null || !user.getPassword().equals(password)) {
                    RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                    dispatcher.forward(request, response);
                    System.err.println(" Password or username is not valid ..... !");
                    return;
            } catch (Exception e) {
                e.printStackTrace();
                RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                dispatcher.forward(request, response);
                return;
            HttpSession session = request.getSession();
            System.err.println(request.getRemoteAddr());
            session.setAttribute("username", user.getFirstName());
            session.setAttribute("userType", user.isAdmin());
            UserRegistry.logInUser(username);
            response.sendRedirect("/PAS/index.jsp");
    }finally is you need to just one user can be online at time or need to know how many user & who is online you should at this class also
    package com.ali.util.filter;
    import java.util.ArrayList;
    import java.util.List;
    public class UserRegistry {
        private static final List loggedInUsers = new ArrayList();
        public static void logInUser(String username) {
            loggedInUsers.add(username);
        public static void logoutUser(String username) {
            if (isUserLoggedIn(username)) {
                loggedInUsers.remove(username);
        public static boolean isUserLoggedIn(String username) {
            return loggedInUsers.contains(username);
    }If you have any more Q. or any comment , Most welcome
    Thanks
    Ali Jamali

  • How can I get all Login/Logout details

    How can I get all Login/Logout details of all SAP Users from SAP Server/Database of any one year? I am asking about SAP License User. Is their any Table or Report by which I can get these details? For example USR02(Logon Data) Table store the last login/logout details of SAP Users. So in same way is any table which store Users Login/Logout details through out a year or month.

    Hi Sudheer,
    Check this .
    You can find the transactions by a particular user from the transaction SM04.
    SM04 gives you the details of the users logged in,terminals,transactions the user is working on, the time he has logged in,no of sessions user has opened, and the memory used by the user's programs... all of that w.r.t to the client we login. but we can't get info like date and number of times the user has logged in.
    U can see tables:
    USR01 User master record (runtime data)
    USR02 Logon data
    USR03 User address data
    USR05 User Master Parameter ID
    USR12 User master authorization values
    plz rewards points if helpful
    cheers
    srinivas.k
    Edited by: k srinivas on Apr 28, 2008 11:54 AM

  • Are there login/logout widgets

    Hi All
    I am looking for a very robust franework where common elements to typical ecommerce type of websites are available. For example I see most sites have a login and logout system. I have written previous login logouts for my sites but im looking for something very sophisticated and robust
    key features would be
    1 - ability to know how many people are logged in to your site
    2 - storing as much information about login client during login process in databases. example ip info, datetime, referring site, page loigged in from and so on
    3 - logging unsucessful logins
    4 - placing cookies or session cookies on successful logins
    5 - terminating sessions if client logs out by clicking logout button in website and flag log in databases saying he has logged out.
    6 - terminating sessions if they do not logout and flag log in databases saying he has logged out.
    also there may be other important features in login/logout that i havnt thought of.
    Is something available like this that i can pick up?
    Regards
    Antek

    Hi,
    There is a feature of DISQUS called "Guest commenting". If you use this feature, user willnot have to login or register
    Guest Commenting | DISQUS
    Hope this helps

  • Support JEE6 new login/logout methods

    Custom authentication with BlazeDS is clunky because there was no standard way to programmaticaly login or logout. With JEE6 we don't have that problem anymore. I want to add a JEE6LoginCommand that will give us a container agnostic way to do login/logout. This is a quick and dirty first cut at that.
    Thanks,
    John
    package flex.messaging.security;
    import java.security.Principal;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import flex.messaging.FlexContext;
    public class JEE6LoginCommand extends AppServerLoginCommand {
        @Override
        public Principal doAuthentication(String username, Object credentials) {
            String password = extractPassword( credentials );
            Principal principal = null;
            try {
                HttpServletRequest request = FlexContext.getHttpRequest();
                request.login( username, password );
                principal = request.getUserPrincipal();
            } catch (ServletException e) {
                // Figure out what is needed here.
            return principal;
        @Override
        public boolean logout(Principal principal) {
            try {
                HttpServletRequest request = FlexContext.getHttpRequest();
                request.logout();
            } catch (ServletException e) {
                // Ignore logout failed exception.
            return false;

    hparmar : yes, that's what I feared... I hoped it would be possible to tell the server from which application I do need the login information. What a mess.
    Dimo Hristov: thanks for your offer! I already tried decompiling the flash program with the shareware version of Trillix Decompiler. It only decompiled the UI (in a terrible way) but no source code at all. It was the shareware version where I can decompile 2 or 3 programms to test the software. Are you sure the non-free version of Trilix Flash Decompiler will do..?

  • JAAS: how to login / logout programmatically?

    Dear All,
    i am writing a web application.
    i have created a JSF login form for authentication. the application use JASS mechanism for pages protection.
    i want to use the oracle's prebuild loginmodule (class name is
    "oracle.security.jazn.login.module.LDAPLoginModule") to authenticate user from LDAP server.
    to authenticate the user, my code in the backing bean for the login are:
    public String authenticate()
    MyCallbackHandler callback = new MyCallbackHandler();
    callback.setName("name");
    callback.setPassword("password");
    //create a logoncontext for specific login module, and callbackhandler
    LoginContext ctx = new LoginContext("name of configuration", callback );
    //login
    ctx.login();
    callback handler code:
    public class MyCallbackHandler implements javax.security.auth.callback.CallbackHandler
    private String name = "";
    private String password = "";
    public void setName(String name)
    this.name = name;
    public void setPassword(String password)
    this.password = password;
    public void handle(Callback[] callbacks)
    for(Callback c : callbacks)
    if (c instanceof NameCallback)
    ((NameCallback)c).setName(name);
    else if(c instanceof PasswordCallback)
    ((PasswordCallback)c).setPassword(password.toCharArray());
    the login method SEEMS succeed as no exception thrown.
    but the HttpServletRequest.getUserPrincipal() return null and whenever i visit other
    protected page (after calling the logincontext.login())...i was redirected to the login page ...
    do anyone know what the problem is??
    thanks

    Hi Frank,
    I am also facing the same problem getting the container to recognize the user using login/logout programmatically. I cannot use j_security_check as my authentication module requires three fields for authenticating the user and also I have a jsf login form.
    I have attempted the container to recognize the user by writing a filter to field all request with url-pattern "/" to get the user information from the session(saved by login action) and wrapped the request with an implementation of HttpRequestWrapper where I have overridden the methods - getRemoteUser(), getUserPrincipal(), isUserInRole().
    It is the first mapping in the web.xml and I am unable to understand if the redirect is happening before/after it reaches my AuthenticationFilter and my user is never recognized by the container since my method implementations are not called. The AuthenticationFilter is being called and I think it is something to do with the ordering of the filter-mapping. Any help would be appreciated.
    I have pasted my code below
    AuthenticationFilter
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain fc) throws IOException, ServletException {
    if (request instanceof HttpServletRequest) {
    HttpServletRequest httpRequest = (HttpServletRequest)request;
    HttpSession session = httpRequest.getSession();
    if (session != null &&
    session.getAttribute(SESSION_ATTR_USER) != null &&
    session.getAttribute(SESSION_ATTR_ROLES) != null) {
    String username =
    (String)session.getAttribute(SESSION_ATTR_USER);
    Set roleSet = (Set)session.getAttribute(SESSION_ATTR_ROLES);
    AuthRequestWrapper wrapper =
    new AuthRequestWrapper(httpRequest, username, roleSet);
    fc.doFilter(wrapper, response);
    } else {
    fc.doFilter(request, response);
    AuthRequestWrapper
    public class AuthRequestWrapper extends HttpServletRequestWrapper {
    private String username;
    private Set roleSet;
    private Principal principal;
    public AuthRequestWrapper(HttpServletRequest request, String username,
    Set roleSet) {
    super(request);
    this.username = username;
    this.roleSet = roleSet;
    this.principal = new UserPrincipal(username);
    public String getRemoteUser() {
    return username;
    public Principal getUserPrincipal() {
    return principal;
    public boolean isUserInRole(String roleName) {
    return roleSet.contains(roleName);
    web.xml
    <filter-mapping>
    <filter-name>AuthFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>

  • HR runtime error on agent login/logout

                       Good afternoon.
    Has anyone run in a a runtime error when running agent login/logout reports? I am unable to run this report.
    a runtime error occurred while executing the inquiry. i know there used to be bugs on this but.
    uccx, ha, 8.5.1. i have included the log. Thank you for any assistance.

    I removed my deployments from the remote OC4J server and removed deployment entries from http-web-site.xml and server.xml. I redeployed my simpleJSP bibean application to my local and remote OC4J server. It works locally but fails now with this new error:
    javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.
    BIB-10101 Handler failed to handle UserObject.
    oracle.bali.ewt.elaf.windows.WindowsEWTPagingComponentUI
         at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:254)
         at simpleJSP.jspService(_simpleJSP.java:72)
         [SRC:/simpleJSP.jsp:6]
         at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
    Regards,
    Dan

  • Login/Logout sync with user control over folders to sync

    We have a user who needs modify the folders that are synced periodically.
    The user has multiple computers that they keep synced with OS X Server 10.4.10.
    We turned background sync to unmanaged and they are able to modify their settings and left login/logoff sync as managed. Any time they login/logoff auto sync does not occur.
    How do we configure their settings so that they can adjust the folders that get synced and still have auto sync at login/logoff?

    Not even sure you can do this but you might look for Login/Logout Hooks that can perform the action your looking to do. There would have to be a way to shell-script the Sync part of RHD which I'm not sure you can.
    On the Server Side you can control what get auto synced and what does not in WGM. Then you just set it all to auto on login/logout.

  • Flex session replication among cluster Help needed!

    Hi,
    I'am using Flex 3, LiceCycle Data Service 2.5.1, JBoss 4.2.1 in a web application. Our JBoss servers are in a cluster. We want to replicate Flex session among cluster, but it doesn't work. Did someone face issue with Flex session replication among application servers?
    Thank you for your help
    Gerard

    Gerard,<br /><br />You will need to cluster the LCDS 2.5.1 instances the same way you clustered <br />JBoss.<br /><br />Check out the "Configuring Data Services" chapter in the Admin guide:<br />http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/services_config_4.html<b r /><br />--<br />Tom Jordahl<br />Adobe<br /><br /><br /><[email protected]> wrote<br />> Hi,<br />><br />> I'am using Flex 3, LiceCycle Data Service 2.5.1, JBoss 4.2.1 in a web <br />> application. Our JBoss servers are in a cluster. We want to replicate Flex <br />> session among cluster, but it doesn't work. Did someone face issue with <br />> Flex session replication among application servers?<br />> Thank you for your help<br />><br />> Gerard

  • JDeveloper 11g R1 Toplink Session Login Problem

    Hi Everyone,
    Toplink Session Login are unsuccessful in my application. My session.xml file gives xml validation errors.
    Please help me,
    Best Regards
    Gokmen
    XML Validation errors :
    element primary-project not expected.
    element login not expected.
    element connection-pools not expected.
    My session.xml file here:
    <?xml version="1.0" encoding="windows-1254"?>
    <toplink-sessions version="11g Release 1 (11.1.1.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>AnahtarV3</name>
    <server-platform xsi:type="weblogic-10-platform"/>
    <primary-project xsi:type="xml">META-INF/ToplinkMap.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle11Platform</platform-class>
    <user-name>xxxx</user-name>
    <password>7D39547AAAC98C485237BC9ABBBAEFBA</password>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <preallocation-size>1</preallocation-size>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@xx.yyyy.www:1521:zzzz</connection-url>
    <force-field-names-to-upper-case>true</force-field-names-to-upper-case>
    <optimize-data-conversion>true</optimize-data-conversion>
    <trim-strings>false</trim-strings>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>read</name>
    <max-connections>1</max-connections>
    <min-connections>1</min-connections>
    <login xsi:type="database-login">
    <user-name>bonus</user-name>
    <password>C9AB9547D3AC98C485237B7AABBAEFBA</password>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@oratest.boyner.trk:1521:bdbtest</connection-url>
    </login>
    </read-connection-pool>
    <write-connection-pool>
    <max-connections>1</max-connections>
    <min-connections>1</min-connections>
    </write-connection-pool>
    </connection-pools>
    </session>
    </toplink-sessions>
    Console Error Log:
    Exception Description: Several [3] SessionLoaderExceptions were thrown:
    org.xml.sax.SAXParseException: <Line 35, Column 30>: XML-24534: (Error) Element 'max-connections' not expected.
    org.xml.sax.SAXParseException: <Line 36, Column 30>: XML-24534: (Error) Element 'min-connections' not expected.
    org.xml.sax.SAXParseException: <Line 37, Column 34>: XML-24521: (Error) Element not completed: 'write-connection-pool'

    Hi Gokmen,
    Enhancement for clearing the design time errors by providing support for xsi:type is planned for the Shepherd release.
    The workaround for the Connection Pool errors is to define using the API.Below sample code can be useful for you.
    Create a class which implements SessionEventListener or extend SessionEventAdapter and override the preLogin(SessionEvent event) and define read and write connections in the method.Register the SessionEventListener with session(open the session.xml in JDeveloper flat editor->Options->EventListener->browse and Select the class).
    When application is run and preLogin() event will be called and connection pool is defined with read and write connections.
    package model;
    import org.eclipse.persistence.sessions.SessionEvent;
    import org.eclipse.persistence.sessions.SessionEventAdapter;
    public class SampleEventListener extends SessionEventAdapter {
    public SampleEventListener() {
    super();
    public void preLogin(SessionEvent event) {
    System.out.println("in the pre login method");
    org.eclipse.persistence.sessions.server.ServerSession serverSession=(org.eclipse.persistence.sessions.server.ServerSession)event.getSession();
    serverSession.addConnectionPool("testReadPool", event.getSession().getDatasourceLogin(), 1, 10);
    public void postLogin(SessionEvent event) {
    org.eclipse.persistence.sessions.server.ServerSession serverSession=(org.eclipse.persistence.sessions.server.ServerSession)event.getSession();
    System.out.println(serverSession.getConnectionPool("testReadPool").getMaxNumberOfConnections());
    System.out.println(serverSession.getConnectionPool("testReadPool").getMinNumberOfConnections());
    Hope this helps.
    Regards,
    P.Vinay Kumar

  • JDeveloper 11g R1 Toplink Session Login Unsuccessfull

    Hi Everyone,
    Toplink Session Login are unsuccessful in my application. My session.xml file gives xml validation errors.
    Please help me,
    Best Regards
    Gokmen
    XML Validation errors :
    element primary-project not expected.
    element login not expected.
    element connection-pools not expected.
    My session.xml file here:
    <?xml version="1.0" encoding="windows-1254"?>
    <toplink-sessions version="11g Release 1 (11.1.1.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>AnahtarV3</name>
    <server-platform xsi:type="weblogic-10-platform"/>
    <primary-project xsi:type="xml">META-INF/ToplinkMap.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle11Platform</platform-class>
    <user-name>xxxx</user-name>
    <password>7D39547AAAC98C485237BC9ABBBAEFBA</password>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <preallocation-size>1</preallocation-size>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@xx.yyyy.www:1521:zzzz</connection-url>
    <force-field-names-to-upper-case>true</force-field-names-to-upper-case>
    <optimize-data-conversion>true</optimize-data-conversion>
    <trim-strings>false</trim-strings>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>read</name>
    <max-connections>1</max-connections>
    <min-connections>1</min-connections>
    <login xsi:type="database-login">
    <user-name>bonus</user-name>
    <password>C9AB9547D3AC98C485237B7AABBAEFBA</password>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@oratest.boyner.trk:1521:bdbtest</connection-url>
    </login>
    </read-connection-pool>
    <write-connection-pool>
    <max-connections>1</max-connections>
    <min-connections>1</min-connections>
    </write-connection-pool>
    </connection-pools>
    </session>
    </toplink-sessions>
    Console Error Log:
    Exception Description: Several [3] SessionLoaderExceptions were thrown:
    org.xml.sax.SAXParseException: <Line 35, Column 30>: XML-24534: (Error) Element 'max-connections' not expected.
    org.xml.sax.SAXParseException: <Line 36, Column 30>: XML-24534: (Error) Element 'min-connections' not expected.
    org.xml.sax.SAXParseException: <Line 37, Column 34>: XML-24521: (Error) Element not completed: 'write-connection-pool'

    Hi,
    Currently the session.xml shows design time error(as support for xsi:type is not there), but this will not block deployment or functionality of application.
    The workaround for the Connection Pool errors is to
    provide name element for the connection pool in session.xml after configuring read and write connection pools at session level as below
    <connection-pools>
    <read-connection-pool>
    <name>read-connection-pool</name>
    <login xsi:type="database-login">
    </read-connection-pool>
    </connection-pools>

  • Flex Session implementation in Java

    Hi
    I am new to Flex. I have requirement like "store and retreiving a value in FlexSession instead of passing it to UI". The application in which I am working is an existing application where the value which I mentioned is generated from a service call and storinand reteiving it inside a DB. I neeed to modify it  so that it should be from Flex Session.
    I tried using FlexContext.getFlexSession().setAttribute("abc","value");
    But while retreiving through  FlexContext.getFlexSession().getAttribute("abc") it is returning null.
    Could somebody help in finding a solution for this. It is urgent.

    Thanks for your reply Claudiu. FlexContext comes from flex-messgaing-core.jar and I don't think it is a custom class. And my issue got solved . I think I missed the below entry in web.xml,
    <!-- Http Flex Session attribute and binding listener support -->
     <llstener>
    <listener-class>flex.messaging.HttpFlexSession</listener-class>
    </llstener>

  • Controlling Login/Logout and Background Sync

    Mac OS X Server 10.5.7
    Mac OS X Client 10.5.7
    Everything setup perfectly and by the book on both Server and Client.
    Problem:
    Why in God's name has Apple COMBINED the sync rules for both Login/Logout and Background Sync??? It's the most illogical thing and it does not work!!!
    Question:
    I know how to prevent Background items from Syncing at Login (through the preference manifest), but how to I get the Background sync NOT to sync LOGIN/LOGOUT items.
    The problem is always and systematically been mostly with the LIBRARY folder giving all sorts of sync errors. I have tried every possible trick combination but nothing seems to work.
    Is this STILL a bug even after a year?? If so, other than skipping the Library folder completely, mobile homes is utterly useless and unreliable. If I skip the Library folder, then mobile homes aren't really complete if a user moves to another machine.
    Has anyone found a reliable solution to this mess?
    PLEASE HELP.

    Something is definitely breaking it. Its as if at some random point in time, the sync stops obeying the background rules. I can only conclude that there is still is a bug somewhere that is not fixed.
    For example, I initially created the mobile home setting using the computer groups. When that started giving me errors, then I figured, let me try it by doing it via groups. So I created a new group and then, undid the settings for mobile homes that I had set for my computer group.
    The first time I logged in, it was working perfectly. Then my laptop's battery died. When I plugged it back, it reconnected to my wireless network and THATS when the bug started showing up again. No matter how many times I restarted, if I have firefox or entourage open, I automatically see that exclamation point in the upper right hand corned (on the mobile homes icon) and its ALWAYS the library files pertaining to those apps that 'are in use'.
    This is really frustrating and most non-apple like. This used to work perfectly under Tiger Server, I don't understand how Apple can mess this up THIS BAD and worse, not have a solid fix after a year.
    This bug even occurred with a brand new installation of Leopard server on a Xserve and a Mac OS X 10.5.7 station. The instant the mobile user logged on, that exclamation point came on complaining about the entourage files being in use even though that entire folder is set to be SKIPPED during Background Syncing.
    Not sure where to look anymore.
    And one more thing; as soon as I encounter that exclamation point, the time/date stamp reporting the last sync stops working as well.
    Could you provide screenshots of your setup? Could it be that Im missing one tiny detail somewhere? I just dont see where though.
    This is an updated output after it breaks (maybe there's a clue in there somewhere)
    excludedItems = (
    comparison = fullPath;
    value = "~/.SymAVQSFile";
    comparison = fullPath;
    value = "~/.Trash";
    comparison = fullPath;
    value = "~/.Trashes";
    comparison = fullPath;
    value = "~/Documents/Microsoft User Data";
    comparison = fullPath;
    value = "~/Library";
    comparison = fullPath;
    value = "~/NAVMac800QSFile";
    excludedPrefItems = (
    comparison = fullPath;
    value = "~/.SymAVQSFile";
    comparison = fullPath;
    value = "~/.Trash";
    comparison = fullPath;
    value = "~/.Trashes";
    comparison = fullPath;
    value = "~/Library/Application Support/SyncServices";
    comparison = fullPath;
    value = "~/Library/Caches";
    comparison = fullPath;
    value = "~/Library/Logs";
    comparison = fullPath;
    value = "~/Library/Printers";
    comparison = startsWith;
    value = "IMAP-";
    comparison = startsWith;
    value = "Exchange-";
    comparison = startsWith;
    value = "Mac-";
    homeSyncCompleted = 1;
    homeSyncTime = 2009-05-25 21:09:29 -0400;
    isNewMobileAccount = 0;
    periodicSyncOn = 1;
    syncPeriodSeconds = 0;
    syncedFolders = (
    path = "~";
    syncedPrefFolders = (
    path = "~/Library";
    path = "~/Documents/Microsoft User Data";
    }

  • TopLink - create dynamically session login ?

    Hi all,
    pls, how can I create dynamically login to database?
    I use toplink workbench and in this step 6: [http://www.oracle.com/technology/products/ias/toplink/doc/11110/tutorial/intro/standalone/intro_tutorial010.htm#CIHIHIFF] I do not check "save Login and Password" ...
    If I set static user and password, everthing works fine, bud i need created login dynamically.. my code is:
    +protected void createSession() throws Exception {+
    System.setProperty("toplink.xml.platform", "oracle.toplink.platform.xml.jaxp.JAXPPlatform");
    XMLSessionConfigLoader loader = new XMLSessionConfigLoader(getSessionsXmlPath());
    SessionManager mgr = oracle.toplink.tools.sessionmanagement.SessionManager.getManager();
    session.setLogin(applyLogin());
    session = (ServerSession)mgr.getSession(loader, getSessionName(), Thread.currentThread().getContextClassLoader(), true, true);
    +}+
    +private DatabaseLogin applyLogin(){+
    DatabaseLogin login = new DatabaseLogin();
    login.usePlatform(new oracle.toplink.platform.database.oracle.Oracle8Platform());
    login.setDriverClassName("oracle.jdbc.OracleDriver");
    login.setConnectionString("path"); //jdbc:oracle:thin:@HOST:PORT:SID - path is OK (but its SECRET) :-)
    login.setUserName("user"); //USER NAME  - user is OK, but secred ;-)
    login.setEncryptedPassword("pass"); //PASSWORD, ENCRYPTED password is OK ;-)
    return login;
    +}+
    but it still returns java.lang.NullPointerException! If i set in TopLink workbench user and password, so it works..
    Any ideas, how set login in Java, pls?
    Sry for my English..
    Thanks advance!
    Bes regards, KLD

    Well,
    now it's works, but I have still one problem :(
    If I create a session in the TopLink Benchmark, and I don't save a user and user's password in the connection to the DB (in Benchmark when I create Login in session.. - and this I don't want to save user and password!) the sessions is created OK:
    session = (ServerSession)mgr.getSession(loader, getSessionName(), Thread.currentThread().getContextClassLoader(), false, true);
    Login is created OK:
    session.setLogin(myLogin());
    +private DatabaseLogin myLogin(){+
    DatabaseLogin login = new DatabaseLogin();
    login.usePlatform(new oracle.toplink.platform.database.oracle.Oracle11Platform());
    login.setDriverClassName("oracle.jdbc.driver.OracleDriver");
    login.setConnectionString("xxx"); //jdbc:oracle:thin:@HOST:PORT:SID
    login.setUserName("xxx"); //USER NAME
    login.setEncryptedPassword(xxx"); //PASSWORD, ENCRYPTED
    return login;
    +}+
    But If I want login to the DB with this login and session:
    session.login();
    Then return java.lang.NullPointerException
    and in console is write:
    *Exception [TOPLINK-4002] (Oracle TopLink - 11g (11.1.1.0.0) (Build 080909)): oracle.toplink.exceptions.DatabaseException*
    Internal Exception: java.sql.SQLException: call invalid arguments
    Error Code: 17433
    But I don't now how? If i save user and password in benchmark, everthing works fine...
    Any ideas, pls?
    Thanks advance!
    Sry for my English...
    Best regards, KLD.

  • Reporting of users login / logout

    Hi,
    Can we get Reporting of users login / logout / tea break / prayer break / meeting break status (i.e. complete login-logout monthly report of each employee) in CDR or some other way in CUCM.
    Regards.

    Hi
    1-The Cisco Extension Mobility and Cisco Extension Mobility Cross Cluster  features keep a record of the devices to which users are actively logged  in. For the Cisco Extension Mobility feature, the actively logged-in  device report tracks the local phones that are actively logged in by  local users; for the Cisco Extension Mobility Cross Cluster feature, the  actively logged-in device report tracks the local phones that are  actively logged in by remote users.
    Please find the below link:-
    https://supportforums.cisco.com/thread/2184881
    2- For your question , you need advanced solution which will help you to monitor status of user , as IPCC .,etc..
    Thanks
    Please rate all useful information

Maybe you are looking for

  • Help!!!!! iPhoto 11 has ruined my photos stored on an external drive!

    I have been having numerous problems since upgrade to iPhoto 11.  I moved my library to an external SeaGate GoFlex Network drive for more space.  But I just added 22 pictures, got the wheel of death for every one. and then when I tried to find the li

  • Reducing plots shown in legend causes error

    I am using a waveform chart for a classic scope display, channel 0, channel 1 and math. Sometimes however I would like to set up the scope so the math channel is configured on the waveform, but not displayed, and not displayed in the legend either. I

  • OSB 10gR3 Error handling and reporting action approach

    My use case: Simple Proxy service routes to an external web service created as Business service in OSB Whenever there is transport error/soap fault from the external web service, that error needs to be reported along with the original request receive

  • Error While Accessing Universe Designer

    Hi All, I am facing an strange issue - I have BO Installation on windows server - 2003. As a client when iam trying to access the server from diffrent location i am able to access CMC and Polestar. But When i am trying to access universe designer - i

  • Expand items on a material document

    The system allows to post 100 items per material document and after that it create a new document. How can we have the system to allow more than 100 items per material document? Is there any configuration/developement?