Session Variable? -How do I treat this

Hello,
I am writing an application that is tracking the results
arriving from various selected stations (230 of them). My
application will dynamically displays only stations for which
results have been received. I plan to have my page refresh every 5
minutes to update the results list.
Now based on results received I will update a report page, so
I need to set a variable that changes every time my query result
set changes and then I will pass this new value to the report page
for processing. I am confused about how to treat this variable.
Should I use set it as a cookie or a session variable? (but it
could change many times during the session)? TIA

Hi,
Your questions is not clear, so I'm not sure if this is what
you are looking for.
Let's forget for a moment how the data gets there, and let's
focus on the report.
You have a databases that get's constantly updated with
new/changing records. It's sounds to me like you need to timestamp
your data, and when the report page is opened, you need to
aggregate data from now()-5 minutes to now() and display them.
The refresh for the page every 5 minutes needs to be done
with javascript (window.setTimeout)
cheers,
fober

Similar Messages

  • SESSION VARIABLES : HOW TO TEST FOR MULTIPLE USERS

    I have a username session variable set up on a localhost testing envirnoment.
    This works fine for one user, but when I open another occurence of the browser (or just another tab) to test for multiple users the system overwrites the session variable with the last username input.
    So the question is:
             Why doesn't dreamweaver hold an instance of the session variable for each browser session? and if not what are your suggestions?
    Thanks
    Adam.

    Thanks for that.
    After scouring the internet I found the only way of running 2 instances of firefox  without them sharing the session variables is to create 2 new firefox profiles in windows + set the MOZ_NO_REMOTE environment variable.
    Internet explorer is much easier as it has a 'new session' option in the file menu, but seems to have more trouble displaying tables correctly.
    Hope this helps anyone with a similar problem.

  • Session Variable : How to find out where all it is used in the repository?

    Hello Everyone,
    We have a requirement where we need to convert a few session variables into repository variables. For this we need to figure out where all is that session variable used in the repository and webcat (which all logical columns use it, which all prompts use it etc). We tried the query repository utility but that didnt help. Is there any other way to find that out? Will really appreciate any pointers from your side.
    Thanks in Anticipation,
    Karan

    Hi,
    To find the variables used in,
    Rpd : Open the rpd->Navigate to Tools Menu->Select "Utilities"->"Repository Documentation".This will generate a csv file with the associations
    Webcat :Open the webcat using catalog Manager->Tools Menu->Create Report-.Select the desired columns (Include Xml column)->Open the rpeort in excel find "Variable"->from this you can find the various variables used in the catalog.
    Rgds,
    Dpka

  • Firefox is not restoring my previous sessions anymore. how do i fix this?

    i have my settings set so that the previous sessions should be shown to me when i reopen firefox. this worked fine for awhile but then it just stopped. i would like this fixed please.

    Make sure that you close Firefox with all windows still open and not have the menu bar visible with all windows closed.
    Did you check for History > Recently Closed Tabs/Windows?
    Make sure that you do not run Firefox in permanent Private Browsing mode (Never remember history).
    *https://support.mozilla.org/kb/Private+Browsing
    *Firefox > Preferences > Privacy > Firefox will: "Use custom settings for history"
    *Deselect: [ ] "Always use Private Browsing mode"
    In case you use "Clear history when Firefox closes":
    *do not clear the Browsing History
    *Firefox > Preferences > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history

  • Logic Pro X automatically mutes and solo tracks in any session.  How do I fix this error?

    When using Logic Pro X, I am encountering a mute/solo error.  Any session or new session I open tracks will automatically mute or solo on their own.  I really need assistance with this error. 
    Thanks in advance,
    JussDaFacts

    Shut down your Mac... Unplug any external midi  keyboards and/or controllers...  and then restart your Mac
    Now test with Logic Pro and a new project and see if this behavior continues.. If not you know what the cause is... and you will need to check the settings for your external devices..
    You may need to delete Logic's CS prefs and re-add your external devices once more if you cannot solve the issue with your midi devices on the devices themselves...
    Quit Logic Pro
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic.pro.cs file from the preferences folder.
    Restart the computer.
    Note: If you cannot find this file you did not follow the steps exactly as described!
    Failing that, power down (not just put to sleep) any iOS devices you have and test with a new project in LPX again. If that resolves the issue then you have/had one or more midi/controller/remote apps running in the background of your iOS device.. Make sure you quit the apps, not just close them when you are finished using them....
    http://osxdaily.com/2013/09/28/quit-apps-in-ios-7/

  • Need to reboot  airport  because safari keeps freezing.  Multiple times per session!  How do I fix this?

    When using the internet on my MacBook Pro, it often freezes up and the only way that I can get it to work is to turn my airport off and then on again.  Can anyone tell me how to stop from needing to do this?  It is very irritating and I have taken to using an ethernet connection just to avoid having to deal with the problem.  Thanks!

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • I have Firefox 5.0 set to start on a blank page. However, about 50% of the time, instead of starting on a blank page, it starts by showing the pages of the last session. How do I correct this, or is it a known bug?

    Tools > Options > General > Startup > When Firefox starts: Show a blank page. (I.e., Show my windows and tabs from last time is NOT set.)
    Firefox does not crash when exited the previous time. However, about half the time, when I start Firefox again, it shows the last websites I visited, despite the startup setting.
    Feel free to write me if you need any extra info.

    Perhaps your install of Firefox is hanging on exit, triggering the session restore.
    You can disable session restore by changing a hidden preference.
    Type about:config into the location bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    In the filter box type resume to bring up a small number of preferences
    Double-click on the preference browser.sessionstore.resume_from_crash to change its value to false
    *solution courtesy TonyE
    https://support.mozilla.com/en-US/questions/754840

  • I have "show a blank page" selected but since I've downloaded the latest version it always restarts with whatever pages and tabs I had open in the previous session. How do I fix this?

    I have just reloaded and no difference

    If you do not use "Show my windows and tabs from last time" then make sure that Firefox closes properly to prevent session restore from reopening a possibly crashed session.
    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • I recently had to force quit firefox (after I quit it from the menu and it asked if I wanted to save my session. I did). Upon restart, all of my history is gone as well as my last session. How can I recover this?

    Where does firefox store all this info? Maybe I can retrieve it from time machine.

    Why are you not using latest firefox 7?
    * getfirefox.com

  • Unable to fetch session variables in my application page code behind

    hi,
    my env:  1  WFE  server which hosts the  central admin and my web appln,  1 sql server box  
    i am having a custom web part[ listviewbyquery web part]  which populates the site collection/ sub site's document library contents . also it reads some query string values and pushes these  values into  session variables.
    and i am having another application page in this application which reads this session variables and  perform some operation in a custom sql db. But i am unable to read these session variables on page load of this  application page.
    am unable to debug also. so, would like to know is there any way i can see, what values  are getting passed to this page and verify the session variables are accessed correctly.
    or
    is this  by design, that its not possible to read session variables in the application page ?
    if i am not having a visual studio env. to debug, how to test these  session variable  existence / to find the root cause of this issue.
    note: already configured session state in IIS , http  modules section. am using Page.Session["myvariable1"].tostring() to fetch the  session variables.
    help is appreciated!

    i have found out myself. i have put  page.response.write(mysessionvariables) in the code and deployed and tested in my env. and i was able to find out the reason and i have fixed it with proper validation check.

  • Alternate method to writing filter for recordset using session variable

    I'm not sure if this can be done.  I have a user page which I'd like to return database info based upon a userid entered on another page. So far, the session variable (userid) is captured on the user page however it is supposed to return the user's name rather than displaying the session variable.
    My problem is this. Within dreamweaver, I am able to create recordsets however I cannot create a filter. The connection works. At this point, I am searching for a workaround where I can tie in the session variable to recordsets. I should make mention that whenever I update the sql statement using the recordset widget, my recordset disappears. ?  At any rate, heres a sample of the code sans connection strings, etc.
    <%
    Dim Recordset1
    Dim Recordset1_cmd
    Dim Recordset1_numRows
    Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
    Recordset1_cmd.ActiveConnection = MM_newuniversity1_STRING
    Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid =  '" & Session("userid_my") & "'"
    Recordset1_cmd.Prepared = true
    Set Recordset1 = Recordset1_cmd.Execute
    Recordset1_numRows = 0
    %>
    On the user page, I have a 'Welcome' and the following code
    {Request.userid_my}
    Any suggestions? I'm afraid I'm a newbie to asp within dreamweaver cs3.

    >When I insert  request.userid_my code it returns the session variable
    AFAIK, session variables are not part of the request object - so I do not understand why you are referencing them this way. I would use the standard reference method : Welcome <%Response.Write(Session("username"))%>
    >when I insert the recordset associated with 'name' I get an Adobe End of file error. ?
    Sounds like a possible problem with your installation. You may need to try reinstalling DW. How are you "inserting" this recordset and when does the error occur?
    Regarding your next post...
    >select name from table_name where userid = '" & namemy & "'"
    >The statement consistently returns a 'quoted string not properly terminated' error.....
    The select statement you quoted is obviously not complete. If you are refering to the select in your OP:
    Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid =  '" & Session("userid_my") & "'"
    I see nothing wrong with that syntax and the string appears to be terminated correctly. If there is a different statement causing the error, please post the entire line and include a line above and below.

  • Tree menu based on session variable?

    Hi all,
    is there somewhere a javascript or php or html (or extension)
    tree menu
    that will highlight the current branch based on a session (or
    cookies, at
    least) variable content?
    I cannot fint it anywhere.
    TIA
    tony

    hi Christian,
    Thanks for your help,
    Here is my situation, I have a fact table of very high volume, because of which reports are taking lot of time in displaying results. Recently I have been assigned one of these reports and asked to improve its performance. so, I thought to use a opaque view(thought to apply all the fact related reports filters into WHERE Clause using session variables which can bring down table volume) and then switch this table source with original fact table using 'dynamic' table under existing alias table definition with the help of session variable. The purpose of this table switch is, all existing reports will  source from original fact table, where as modified report will be sourcing from opaque view.
    I would like to try to your suggested approach "creating a placeholder column which contains the exact variable string content for the table source and the opaque view source respectively", but how does OBIEE switch priority of these LTS, can you please explain me this approach a bit further.
    Thanks,
    vijay

  • Basics of session variables

    could really do with some basic guidance on the following:
    setting up a dating agency site. dBase all done and working
    (Acess/ASP VB). i want users to be able to go to a persons detail
    page, and check a box to add them to a list of people they want to
    meet (up to 30 people). finally i want them to go to a selection
    page where the list of records will appear and they can then submit
    that orm (which will incorporate a profile of themselves).
    i guess this means using session variables but not really
    done this before. would really appreciate any guidance on the basic
    outline of how i go about setting up the selection page and how i
    transfer checkbox selections to it as a session.
    appreciate any help out thanks - and thanks

    Are you going to store the "up to 30 people" they selected in
    the database
    so they can come back and see them again? That is what I
    would do, I would
    store the users ID and the ID of the person they want to see
    each in a
    single record. I would then filter the records on a recordset
    that queries
    the table that holds the records of people they want to see.
    Doing it this way opens up a lot of possibilities like the
    person they want
    to see could see who is checking them out. You could even run
    some
    statistics.
    Oh yeah...if you expect this to become popular you will soon
    learn to hate
    Access. Access is actually fine for LOW traffic sites.
    "russelli" <[email protected]> wrote in
    message
    news:f6e4gg$9st$[email protected]..
    > could really do with some basic guidance on the
    following:
    >
    > setting up a dating agency site. dBase all done and
    working (Acess/ASP
    > VB). i
    > want users to be able to go to a persons detail page,
    and check a box to
    > add
    > them to a list of people they want to meet (up to 30
    people). finally i
    > want
    > them to go to a selection page where the list of records
    will appear and
    > they
    > can then submit that orm (which will incorporate a
    profile of themselves).
    >
    > i guess this means using session variables but not
    really done this
    > before.
    > would really appreciate any guidance on the basic
    outline of how i go
    > about
    > setting up the selection page and how i transfer
    checkbox selections to it
    > as a
    > session.
    >
    > appreciate any help out thanks - and thanks
    >

  • Using HttpHeader to set value for session variables

    Hi,
    We want to set values for 2 session variables (USER and ROLEID) using HttpHeader in obiee 11g. Has anyone tried this? How can we achieve this?
    I found the below note on the forum for setting value for the USER session variable. how can we set the ROLEID session variable also? is it possible to set values for 2 variables?
    for setting the USER session variable,
    You should add this in $BI_HOME/bifoundation/web/display/authenticationschemas.xml:
    <SchemaKeyVariable source="httpHeader" nameInSource="Proxy-Remote-User" forceValue="SSO"/>
    <AuthenticationSchema name="SSO" displayName="Single Sign On" userID="IMPERSONATE" proxyUserID="NQ_SESSION.RUNAS" options="noLogoffUI noLogonUI">
    <RequestVariable source="httpHeader" type="auth" nameInSource="Proxy-Remote-User" biVariableName="IMPERSONATE" options="required"/>
    </AuthenticationSchema>
    Please suggest.
    Thanks.

    I think maybe your SnmpValue type or value is not corrent.
    1.3.6.1.4.1.7064.201.1.200.100.0 is Enum control type
    when I use
    SnmpValue val = new SnmpString("0");
    It doesn't work, but when I use
    SnmpValue val = new SnmpInt(0);
    It works. I think the JDMK should give some warning message when the type is not correct. :)
    The code is following:
    final SnmpVarBindList setList = new SnmpVarBindList(" set varbind list ");
    SnmpOid oid = new SnmpOid("1.3.6.1.4.1.7064.201.1.200.100.0");
    SnmpValue val = new SnmpInt(0);
    SnmpVarBind valueBind = new SnmpVarBind(oid, val);
    setList.addVarBind( valueBind );
    SnmpRequest setRequest = session.snmpSetRequest(null, setList);

  • Query with bind variable, how can use it in managed bean ?

    Hi
    I create query with bind variable (BindControlTextValue), this query return description of value that i set in BindControlTextValue variable, how can i use this query in managed bean? I need to set this value in String parameter in managed bean.
    Thanks

    Put the query in a VO and execute it the usual way.
    If you need to, you can write a parameterized method in VOImpl that executes the VO query with the parameter and then call that method from the UI (as a methodAction binding) either through the managed bean or via a direct button click on the page.

Maybe you are looking for