Managing Sessions

Hi All,
I am creating a simple login system using Flex with PHP. I just want to know how to maintain the sessions in Flex.
As for example, if ‘A’ is logged into the system and if he refreshes the page, it should remain in the same page/state since he logged in already. But it is not happening now, since I haven't used any session management in my application.
I'm using PHP and there in PHP, I'm using sessions also. But I'm not aware about how to get those sessions and manage through my Flex application.
I hope my question is understandable.
Regards,
Vimal Raj

Hi,
I do CF but you can get some ideas from here.
http://www.forta.com/blog/index.cfm/2007/11/15/Flex-And-ColdFusion-Session-Variables
Rgds
Johnny

Similar Messages

  • Query the Manage Sessions Table in OBIEE

    Hi All,
    First I should ask, is it possible to get the information you see on Administration -> Manage Sessions, using a query to the database ?
    If not, I would appreciate Ideas to get the best time to reboot OPMCTL on a system that is working almost 24Hrs, is never a constant when users are not working on the system. The idea is to not reboot OPMCTL when there are active sessions.
    Creative Ideas welcome
    Thanks.

    Hope you are on Oracle DB if yes, write a simple query on db tables (V$session and V$session_logops) based on the moudle filter 'nqserver' which gives all Active SESSIONS
    SELECT SID, Serial#, UserName, Status, SchemaName, Logon_Time
    FROM V$Session
    WHERE
    Status=‘ACTIVE’ AND MODULE LIKE '%nqserver%' AND
    UserName='BI_USER';
    For more information refer : Oracle Business Intelligence
    Thanks,
    Saichand

  • "No Log Found" in OBIEE 11g Administration- Manage Sessions

    I am using 11.1.1.5 and have set the Repository logging to Log Level 2..and have also made the User logging to Level 2 as well. I know there is a session variable called LOGLEVEL and I have also tried to edit that. Despite this, I am still unable to see the physical SQL generated by the BI Server under Administration->Manage Sessions. Any idea what I may be missing?

    Hi,
    It's bug. you do workaround method.
    Method 1:
    create session veraible and set it log level 0 ro 7 then u can able to manage session view log (physical query)
    see my screen short
    http://imageshack.us/photo/my-images/215/viewloginitsessionvaria.jpg/
    INIT LOGLEVEL
    and just add dummy table mentioned below kind
    select 7 from IW_POSITION
    assign system session variable:
    LOGLEVEL
    then save it and try to login weblogic then u can able to see the view log.
    Method 2:
    for the particular report do it in answres -->advanced tab
    can you try putting the below syntax in prefix section of advanced tab.
    SET VARIABLE LOGLEVEL=2,DISABLE_CACHE_HIT=1;
    It should generate the log with database sql as well.
    for more
    http://total-bi.com/2010/10/obiee-11g-no-log-found/
    http://prasadmadhasi.wordpress.com/2011/12/01/unable-to-view-log-file-in-obiee-11-1-1-5-0/
    http://bischool.wordpress.com/2009/04/06/set-loglevel-from-answers/
    http://boardreader.com/thread/OBIEE_11g_No_log_found_lj8hXo4f7.html
    Thanks
    Deva
    Edited by: Devarasu on Dec 15, 2011 11:56 AM

  • Accessing Managed Session Bean in Servlet Filter

    I wrote a Servlet Filter to handle user authentication. Now I'm trying to access my Managed Session Bean in the filter in order to save the current user. Unfortunately the Session Bean is created after the Filter executes for the first time.
    I'm trying to access the Session Bean in this way:
    (SessionBean) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("sessionBean");
    In this case getExternalContext() is equals null.
    Is there any way to create the Session bean before the filter executes or any other ideas how to handle this?
    I already searched around the internet but couldnt figure out something.
    Thanks guys,
    Paul

    Ok, fixed it like this. Works perfect. JSF finds and uses the handmade Session Bean as well.
    if(request.getSession().getAttribute(BeanNames.SESSION_SCOPE_BEAN) == null) {
         SessionBean sessionBean = new SessionBean();
         request.getSession().setAttribute(BeanNames.SESSION_SCOPE_BEAN, sessionBean);
    }Thanks,
    Paul

  • OBIEE 11g: Admin= Manage Session= View Log throwing error

    Hi,
    When we are trying to see the logs from obiee 11g admin screen=>manage sessions, it is throwing the following error:
    Log Could Not Be Retrieved
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <3791257602>: Syntax error [nQSError: 26012] . (HY000)
    - But we are not getting any error while running report or dashboard or anything else.
    What could be the possible reason for this? Where to check?
    Thanks in advance

    Sudipta Gupta wrote:
    Hi,
    When we are trying to see the logs from obiee 11g admin screen=>manage sessions, it is throwing the following error:
    Log Could Not Be Retrieved
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <3791257602>: Syntax error [nQSError: 26012] . (HY000)
    - But we are not getting any error while running report or dashboard or anything else.
    What could be the possible reason for this? Where to check?
    Thanks in advanceIf you restart the service the problem would resolve but every time its not a good idea to bounce the services the problem is with cache/queries stores in nqquery.log have a script to clear the cache files periodically
    upgrade to 11.1.1.6.2 the problem is fixed
    thanks,
    Saichand

  • Manage session state in web service (web tier)

    Hallo, is anybody know how to manage session state in web service application?
    I 'm building an application using Sun Java System Application Server 8.1, and using web as web service end point.

    By default webservice is a stateless, but there is a option where you can specify the Request scope session/Reqeust/application
    You can use the above and have to make a change in the client side to particiapte in the session.
    Or
    In the server side you can have webservicesession tracker class...very first time when user is authenticated, you generated a unique token and send them with request....and from there on client should send the same token for further request.
    Token is checked with your webservicesession tracker class which maintains all active seesions. Session tracker class can also inactivate the token session if there was no request from the user for a certain period of time....
    Its similar to HttpSession class ( i call it as WebServiceSession.)
    If you need more help on the webservicesession class...pls let me know.

  • 11G : logging to activate 'view log' in manage sessions

    Hi all,
    I was wondering where to activate the logging so the 'view log' option in manage sessions becomes active.
    Anyone an idea because I'm 'travelling' around in the console, but without success.
    Txs for your great help!
    Kr,
    A

    Hi ADB,
    The only option is to do this via the em?Many administration tasks in 11g are the same as 10g. For example, the log level for a particular user is still defined in the security manager, and you still view the query log (nqquery.log) either through the filesystem, or through the Manage Sessions link in the Presentation Server administration screen
    but after doing that also saying no log found,chk the link below
    http://forums.oracle.com/forums/thread.jspa?messageID=7434587
    Hope it helps you.
    By,
    KK
    Edited by: KK on Oct 26, 2010 6:19 AM

  • Cannot see the Settings Administration Manage Sessions View Log

    Hi !
    I'm using aggregate tables and to verify if they work well, I need to check the sql statement. But in the Answer "Settings > Administration > Manage Sessions > View Log", I see : cannot find history
    Do you know why I can't see my sql statement ? Thanks

    Hi,
    i think you dint enable the query logging..
    in your rpd open your user and in the logging level select 2 or 1.
    before that you need to enable one thing.
    ref here
    http://dbperf.com/Using_the_OBIEE_Log_File
    thanks,
    Karthick

  • Manage Session: "No Log Found"

    Hi all,
    I want to see the session log by going into Dashboards > Settings > Administration > Manage Sessions > Session Monitor. But I see "NO LOG FOUND".
    I read in the documentations "Oracle BI EE Administration Guide" where it said to change the logging level of user= "Administrator" ( i am using this user ) between 2 and 5. I did that, and restarted all the services (oc4j, bi server & ppt server) but NO result.
    I am using
    OBIEE 10g, on RHEL 5
    Thank You

    Thank You Amit, your answer was correct. I could see the log now without the error.
    - I have used the same user : Administrator
    - Logging Level : 5
    but I dont see the SQL Query fired on the database. I can see the following:
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/Human Resources/Absence/Absence Calendar';SELECT Time."Year" saw_0, Time."Month Name" saw_1, Time."Day Of Month" saw_2, "Absence Facts"."# Absence Occurrences" saw_3 FROM "Human Resources - Absence" WHERE (Employment."Employment Category" = 'EMPLOYEE') ORDER BY saw_0, saw_1, saw_2
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- General Query Info:
    Repository: Star, Subject Area: Core, Presentation: Human Resources - Absence
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Logical Request (before navigation):
    RqList
        Dim - Date.Year as c1 GB,
        Dim - Date.Month Name as c2 GB,
        Dim - Date.Day Of Month as c3 GB,
        # Absence Occurrences:[DAggr(Fact - HR - Absence Event.# Absence Occurrences by [ Dim - Date.Day Of Month, Dim - Date.Month Name, Dim - Date.Year, Dim - Date.Calendar Month] )] as c4 GB,
        Dim - Date.Calendar Month as c5 GB
    DetailFilter: Dim - Employment.Employment Category = 'EMPLOYEE'
    OrderBy: c1 asc, c5 asc, c3 asc
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Cache Hit on query:
    Matching Query:     SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/Human Resources/Absence/Absence Calendar';SELECT Time."Year" saw_0, Time."Month Name" saw_1, Time."Day Of Month" saw_2, "Absence Facts"."# Absence Occurrences" saw_3 FROM "Human Resources - Absence" WHERE (Employment."Employment Category" = 'EMPLOYEE') ORDER BY saw_0, saw_1, saw_2
    Created by:     Administrator
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution plan:
    RqList <<908038>> [for database 0:0,0]
        D1.c1 as c1 [for database 0:0,0],
        D1.c2 as c2 [for database 0:0,0],
        D1.c3 as c3 [for database 0:0,0],
        D1.c4 as c4 [for database 0:0,0]
    Child Nodes (RqJoinSpec): <<908051>> [for database 0:0,0]
            RqList <<908018>> [for database 0:0,0]
                D1.c1 as c1 [for database 0:0,0],
                D1.c2 as c2 [for database 0:0,0],
                D1.c3 as c3 [for database 0:0,0],
                D1.c4 as c4 [for database 0:0,0],
                D1.c5 as c5 [for database 0:0,0]
            Child Nodes (RqJoinSpec): <<908033>> [for database 0:0,0]
                    RqBreakFilter <<908017>>[1,2,3,5] [for database 0:0,0]
                        RqList <<908074>> [for database 0:0,0]
                            D1.c1 as c1 [for database 0:0,0],
                            D1.c2 as c2 [for database 0:0,0],
                            D1.c3 as c3 [for database 0:0,0],
                            D1.c4 as c4 [for database 0:0,0],
                            D1.c5 as c5 [for database 0:0,0]
                        Child Nodes (RqJoinSpec): <<908095>> [for database 0:0,0]
                                RqList <<907997>> [for database 0:0,9]
                                    1 as c1 [for database 0:0,9],
                                    2 as c2 [for database 0:0,9],
                                    3 as c3 [for database 0:0,9],
                                    4 as c4 [for database 0:0,9],
                                    5 as c5 [for database 0:0,9]
                                Child Nodes (RqJoinSpec): <<908016>> [for database 0:0,9]
                                    CacheTable T3
                            ) as D1
                        OrderBy: c1, c2, c3, c5 [for database 0:0,0]
                ) as D1
            OrderBy: c1 asc, c5 asc, c3 asc [for database 0:0,0]
        ) as D1
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<907997>>, Close Row Count = 374, Row Width = 356 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<908074>> Projection, Close Row Count = 374, Row Width = 356 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<908074>> Sort, Close Row Count = 374, Row Width = 356 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<908017>> GroupByNoSort, Close Row Count = 374, Row Width = 356 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<908018>> Projection, Close Row Count = 374, Row Width = 356 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<908018>> Sort, Close Row Count = 374, Row Width = 356 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Execution Node: <<908038>> Projection, Close Row Count = 374, Row Width = 348 bytes
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Query Status: Successful Completion
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 0, DB-connect time 0 (seconds)
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Rows returned to Client 374
    +++administrator:321d0000:321d0004:----2011/08/15 17:00:48
    -------------------- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds)Edited by: AfaqAyub.com on Aug 15, 2011 5:10 PM

  • How to manage session ?

    Hi Java Gurus,
    Can any body tell me how to manage session in java.
    I have two url say http://www.xyz/userlogin.php, http://www.xyz/sendsms.php
    1st url gives the login form and second one coes after succesfull login.
    Now I am not using any web browser. I have to surf these pages through java code using java api ( HttpURLConnection, HttpSession, URL etc...).
    I am able to access login form, but after login when I connect second url, it gives session expired message in the html stream.
    This is because I am not managing session. So can any body have any idea or pointer. How I can manage sesssion and access second page after succesfull login.
    I will appreciate your help.
    Thanks and regards -
    Vikas Kumar Sahu.

    The session is managed as a cookie (JSessionID if I'm not mistaken). So what you need is a way to obtain all cookies from an url and send them back to the server. Apache HttpClient is your best bet:
    http://jakarta.apache.org/commons/httpclient/cookies.html

  • 1488: The workstation is no longer imported to the tree from where you are attempting to launch the operation. The Remote Management session cannot proceed.

    After upgrading a Windows XP Pro SP1 machine to the ZfDagent from the
    zfd65u2 patch I receive the following error:
    1488: The workstation is no longer imported to the tree from where you are
    attempting to launch the operation. The Remote Management session cannot
    proceed.
    For now I have went back to the ZfD 4 IR5 agent which doesn't exhibit this
    problem. Any ideas?
    Jim Webb

    Jim,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Sub :  How to manage session ?

    Hi Java Gurus,
    Can any body tell me how to manage session in java.
    I have two url say http://www.xyz/userlogin.php, http://www.xyz/sendsms.php
    1st url gives the login form and second one coes after succesfull login.
    Now I am not using any web browser. I have to surf these pages through java code using java api ( HttpURLConnection, HttpSession, URL etc...).
    I am able to access login form, but after login when I connect second url, it gives session expired message in the html stream.
    This is because I am not managing session. So can any body have any idea or pointer. How I can manage sesssion and access second page after succesfull login.
    I will appreciate your help.
    Thanks and regards -
    Vikas Kumar Sahu.

    What I do in some of our test-clients is that I call the login and get all the cookies from the header and add them to the next request.
    More or less what pkwooster suggested.
    Also, I suggest that you take a look at http://jakarta.apache.org/commons/httpclient/
    and the Example code http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/examples/CookieDemoApp.java?view=markup
    Message was edited by:
    Lajm

  • Powershell generic session and import this session in Exchange remote management session c#

    The situation :
    I am trying to make an application (c#-asp.net) to manipulate user's on an exchange server. The application will be on a different server than the exchange's one. So, to manipulate the data, I am using an "Exchange remote management session" created
    with c#. Exchange remote management session give access to simple powershell command like "New-Mailbox" and "Set-User" - This is good for simple task, but in my case, I have to do more complexe operations that will need some specific command
    that is not included in the default command. To access this command, I have to use some specific module like "ActiveDirectory". It is simple ? Only use "Import-Module" ! Not really, like I said, the "Exchange remote management session"
    is very limited with the command, and "Import-Module" is not allowed...
    So what we can do ?
    I read a lot about my problem, and the most "simple" (That I understand the theory) solution is something like :
    Start with a generic PS session, import the AD module, then connect to an Exchange management session and do an Import-PSSession and use implicit remoting for the
    Exchange management stuff.
    Given that I am pretty new to manipulate the Powershell with c#, I have no idea how to use this awesome solution in my code. So I am asking your help.
    Here's my current code :
    // Prepare the credentials.
    string runasUsername = @"MarioKart 8";
    string runasPassword = "MarioKart";
    SecureString ssRunasPassword = new SecureString();
    foreach (char x in runasPassword)
    ssRunasPassword.AppendChar(x);
    PSCredential credentials =
    new PSCredential(runasUsername, ssRunasPassword);
    // Prepare the connection
    var connInfo = new WSManConnectionInfo(
    new Uri("MarioKart8Server"),
    "http://schemas.microsoft.com/powershell/Microsoft.Exchange",
    credentials);
    connInfo.AuthenticationMechanism =
    AuthenticationMechanism.Basic;
    connInfo.SkipCACheck = true;
    connInfo.SkipCNCheck = true;
    // Create the runspace where the command will be executed
    var runspace = RunspaceFactory.CreateRunspace(connInfo);
    // create the PowerShell command
    var command = new Command("New-Mailbox");
    // Add the command to the runspace's pipeline
    runspace.Open();
    var pipeline = runspace.CreatePipeline();
    pipeline.Commands.Add(command);
    // Execute the command
    var results = pipeline.Invoke();
    if (results.Count > 0)
    System.Diagnostics.Debug.WriteLine("SUCCESS");
    else
    System.Diagnostics.Debug.WriteLine("FAIL");
    This code work great for simple task (like "New-Mailbox") ! But how can I create a "generic PS session" and then use this session in the "Exchange remote management session" ?

    Hi Vincent,
    Generally we can use the cmdlet "import-module" to import the AD module on DC (Domain Controller), and we can also create a exchange remote powershell session with the cmdlet new-pssession, for more detailed information to create exchange remote session,
    please refer to this article:
    Managing Exchange 2010 with Remote PowerShell
    In addition, to invoke powershell cmdlet in C#, please also try to save all the cmdlets to a powershell script (.ps1 file), then we can add the powershell script to C# like:
    Pipeline pipeline = runspace.CreatePipeline();
    pipeline.Commands.AddScript(scriptText);
    If I have any misunderstanding, please let me know.
    Best Regards,
    Anna Wang

  • Manage Sessions

    I gave access to a user for Manage Sessions. Now when I try to run a report in Answers as that user I am unable to locate manage sessions for me to view the log file. I even set the log level to 2 for this user. Do i need to stop and start the services again? What am i missing here?

    I tried stoppping and restarting the services. I am still unable to see Manage Sessions when I log in as that user. As Admin when I login, I can see the Manage sessions and view log. I see Manage Sessions for that user when I login as Admin. My question now is do users reallly get access to Manage Session to view the log file for the exact query coming from the database. If, yes what am I doing wrong?

  • OS X hostname isn't right in Server 2008 Manage Sessions tool

    I have an environment with os x 10.8 and 10.9 connecting to MS DFS on server 2008 R2. When I open the Manage Sessions tool, I see my test workstation in a session, but the name in the "computer" column isn't correct.  We had changed it from 01user01 to mactest, but in the session list it still shows up as 01user01. 
    Haven't been able to find anything i change which has an effect.  When we find it in Microsoft MAP tool, it is correct
    Can someone here clafiry what I'm seeing?
    Thanks!
    - a -

    Thanks, that may have worked. I am a bit confused.
    After doing as you suggested and rebooting the APP Store did allow installation but the version installed was Server 4 (Build 14S333) ** the same as before ** and yet again the App Store shows that OS X Server is update-able.  Attempting to update again hangs.
    I cannot find anything via Google or otherwise that has the Build number of the "latest released build" of OS X Server 4. Also the App Store page does not contain this information.
    Thanks again for your help.

  • How do you use one managed session bean from another?

    Hello -
    I am a complete newbie to JSF coming from Struts 1. My question is how do you use one managed bean from the method of another one? I think this would be a common senario. For example I put a bean in session scope when a user logs in and in a different method within a different bean I want to get some of this user's information. What is the correct way to retireve one bean from a method in another with session scope?
    Also what would the code look like to retieve another bean from the method of a managed bean where the bean you want to retrieve has application scope?
    Thank you in advance.

    Sinplicity wrote:
    Could you be a bit more specific? If a bean is configured in the faces config file then all of it's properties are managed, correct?Not necessarily.
    What would the code look like to retireve the bean?You don't retrieve it, it has been injected.
    Can I retrieve the whole bean or just a property of the bean. I would be really interested in seeing how this is done in code? And would really love a bit more information on what it means to be a managed property?Time to consult a JSF tutorial.

Maybe you are looking for

  • NOT LIKE '%-DUP% not working correctly

    I have those two conditions in my code:    AND b.spbpers_pidm = d.spriden_pidm             AND (   c.spriden_last_name NOT LIKE '%-DUP% %See% ID#%'                  OR d.spriden_last_name NOT LIKE '%-DUP% %See% ID#%' but I still seeing this in my out

  • Open a pdf file with Acrobat Reader/Pro from a https site using ie

    Hi! I somehow don't manage to open a pdf file directly with Acrobat Reader/Pro when trying to open it from a https site and using ie8. With http sites everything works just fine. Are there any settings to enable this with https sites? Greetings Laura

  • RE: R : RE: Domain Classes

    I think Kal's point was that you shouldn't follow the advice in the "Customizing Forte Express Applications" manual on page 90, which suggests creating a DBSession service object and putting a method on a domain with a SQL call that uses that session

  • Proto adding strange items in web browser

    Hi, Proto is adding strange items in web browser that are not in the editor. See images below Editor Web It seems to be adding content that is placed at the bottom of the page. See live link https://creative.adobe.com/file/ff07618c-b98a-4672-a2ce-8f7

  • How to ininstall Digital editions v 1.x?

    To try the Beta of D.E. 1.5x, one is advised to uninstall D.E. 1.x How does one do this? I cannot even get D.E. v 1x to download (cannot find a working link) Help, please! Peter