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
>

Similar Messages

  • Javacard and session variables

    Hello,
    I'm trying to find a reasonable Javacard technique to handle "session variables" that must be kept between successive APDUs, but must be re-initialized on each card reset (and/or each time the application is selected); e.g. currently selected file, currently selected record, current session key, has the user PIN been verified...
    Such variables are best held in RAM, since changing permanent (EEPROM or Flash) variables is so slow (and in the long run limiting the operational life of the card).
    Examples in the Java Card Kit 2.2.2 (e.g. JavaPurseCrypto.java) manipulate session variables in the following way:
    1) The programmers group session variables of basic type (Short, Byte, Boolean) according to type, and map each such variable at an explicit index of a vector (one per basic type used as session variable).
    2) At install() time, each such vector, and each vector session variable, is explicitly allocated as a transient object, and this object is stored in a field of the application (in permanent memory), where it remains across resets.
    3) Each use of a session variable of basic type is explicitly translated by the programmer into using the appropriately numbered element of the appropriate vector.
    4) Vector session variables require no further syntactic juggling, but eat up an object descriptor worth of permanent data memory (EEPROM or Flash), and a function call + object affectation worth of applet-storage memory (EEPROM, Flash or ROM).
    The preparatory phase goes:
    public class MyApp extends Applet  {
    // transientShorts array indices
        final static byte       TN_IX = 0;
        final static byte       NEW_BALANCE_IX=(byte)TN_IX+1;
        final static byte      CURRENT_BALANCE_IX=(byte)NEW_BALANCE_IX+1;
        final static byte      AMOUNT_IX=(byte)CURRENT_BALANCE_IX+1;
        final static byte   TRANSACTION_TYPE_IX=(byte)AMOUNT_IX+1;
        final static byte     SELECTED_FILE_IX=(byte)TRANSACTION_TYPE_IX+1;
        final static byte   NUM_TRANSIENT_SHORTS=(byte)SELECTED_FILE_IX+1;
    // transientBools array indices
        final static byte       TRANSACTION_INITIALIZED=0;
        final static byte       UPDATE_INITIALIZED=(byte)TRANSACTION_INITIALIZED+1;
        final static byte   NUM_TRANSIENT_BOOLS=(byte)UPDATE_INITIALIZED+1;
    // remanent variables holding reference for transient variables
        private short[]     transientShorts;
        private boolean[]   transientBools;
        private byte[]      CAD_ID_array;
        private byte[]      byteArray8;  // Signature work array
    // install method
        public static void install( byte[] bArray, short bOffset, byte bLength ) {
             //Create transient objects.
            transientShorts = JCSystem.makeTransientShortArray( NUM_TRANSIENT_SHORTS,
                JCSystem.CLEAR_ON_DESELECT);
            transientBools = JCSystem.makeTransientBooleanArray( NUM_TRANSIENT_BOOLS,
                JCSystem.CLEAR_ON_DESELECT);
            CAD_ID_array = JCSystem.makeTransientByteArray( (short)4,
                JCSystem.CLEAR_ON_DESELECT);
            byteArray8 = JCSystem.makeTransientByteArray( (short)8,
                JCSystem.CLEAR_ON_DESELECT);
    (..)and when it's time for usage, things go:
        if (transientShorts[SELECTED_FILE_IX] == (short)0)
            transientShorts[SELECTED_FILE_IX] == fid;
        transientBools[UPDATE_INITIALIZED] =
            sig.verify(MAC_buffer, (short)0, (short)10,
                byteArray8, START, SIGNATURE_LENGTH);I find this
    a) Verbose and complex.
    b) Error-prone: there is nothing to prevent the accidental use of transientShorts[UPDATE_INITIALIZED].
    c) Wastefull of memory: each use of a basic-type state variable wastes some code; each vector state variable wastes an object-descriptor worth of permanent data memory, and code for its allocation.
    d) Slow at runtime: each use of a "session variable", especially of a basic type, goes thru method invocation(s) which end up painfully slow (at least on some cards), to the point that for repeated uses, one often attain a nice speedup by caching a session variable, and/or transientShorts and the like, into local variables.
    As an aside, I don't get if the true allocation of RAM occurs at install time (implying non-selected applications eat up RAM), or at application selection (implying hidden extra overhead).
    I dream of an equivalent for the C idiom "struct of state variables". Are these issues discussed, in a Sun manual, or elsewhere? Is there a better way?
    Other desperate questions: does a C compiler that output Javacard bytecode make sense/exists? Or a usable Javacard bytecode assembler?
    Francois Grieu

    Interesting post.
    I don't have a solution to your problem, but caching the session variables arrays in local variable arrays is a good start. This should be only done when the applet is in context, e.g. selected or accessed through the shareable interface. This values should be written back to EEPROM at e.g. deselect or some other important point of time. Do you run into problems if a tear happens? I don't think so since the session variables should be transactional, and a defined point will commit a transaction.
    Analyzing the bytecode is a good idea. I know of a view in JCOP Tools (Eclipse plugin) where you can analyze the bytecode and optimize it to your needs.

  • Direct database request and session variable value

    Hi,
    I have a problem by doing the following : idea is to have report with a list of all tables in user schema (which are not all in repository physical layer).
    By clicking on the name of any, should bring answer report which is done as direct database request doing basically select * from table_clicked (this will be basically the same table with sufix _err holding error rows).
    What I'm trying to do is having some kind report for error rows which can be in different tables in my database. So i had in mind to construct name of table i need , and pass it to database request through session variable. Am i doing right by doing direct database request like this :
    select * from 'VALUEOF(NQ_SESSION.TestVar2)'
    Is there another easyer way of doing this? I know this can be done by gourl by passing parameters but not sure how when i can't filter columns in direct database request (this can be different tables with different names of columns). I hope i didn't complicated this too much.
    Thnx in adwance

    Hi,
    I know this is a hack, and would be much more easy to create one table with dimension and measures, but this is intended to be used with code generator, which can produce different error tables with different column names in different time: It is not conviniet for somebody to add them to repository every 5 minutes. For example : i run my workflow and for first run I have errors in table1(let us say customer table with 30 columns) and if click on the table name in some answer report, i want to see all the bad records in the table. Tomorrow after the run, there are bad records in table1 and in table2 (lets say products) so I would have choice to pick table 1 or table2 and see al the bad records in any of these tables. This means that I can not now which tables will I have tomorrow, and as it is generic, I can manually add some tables in my model, and would have to add err table also as a possibility to have error rows?
    I saw post saying that you can pass parameter value by using go url functionality, by modifying configinstance file, but didn't suceed - http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_session_variable_go_url . Maybe some mistake or any better solution? I created session variable TestVar2, also modified instanceconfig.xml by adding this before </ServerInstance>
    <ParamList>
    <Param name="NQ_SESSION.TestVar2" source="url" nameInSource="SETVAR"/>
    </ParamList>
    and used go url in column formula : ''||"Physical Targets"."Physical Table"||''
    Can I use @1 for using first column value?
    Thnx

  • System session variable ':GROUP'

    Dear Friends,
    I am having an issue with retrieving a value for the reserved system session variable :GROUP IN OBIEE 11.1.1.5
    From what I’ve read in the other posts I should be able to use :GROUP variable after where clause, and if there is more than one group assigned to a user INSTR should take care of this case. However I can’t get this to work.
    I am using row-wise variable, here is the code
    select 'ORGANIZATIONS' , s.ORGANIZATION_ID
    from T_VZA_SECURITY s
    where
    INSTR(':GROUP', trim(s.group_id)) > 0
    --INSTR('MyGroup', trim(s.group_id)) > 0
    I also tried to replace ':GROUP' session variable with 'VALUEOF(NQ_SESSION.GROUP)'
    my security table
    create table T_VZA_SECURITY
    (GROUP_ID VARCHAR(20),
    ORGANIZATION_ID VARCHAR (20),
    OWNING_DEPARTMENT_ID VARCHAR (20),
    ASSIGNED_DEPARTMENT_ID VARCHAR (20)
    Thank you

    I can't test my statement, it comes back with the error if i specify system session variable. If i replace a group variable with the string it works.
    I don't see how i can set the execution order - i only have one init block with row-wise initialization enabled. Basically followed
    http://www.rittmanmead.com/2012/03/obiee-11g-security-week-row-level-security/
    guide, and it does work for :USER but doesn't for :GROUP.
    Thank you for spending time to look at the issue!

  • Help with session variable please - CS5.5 PHP

    Hi all,
    I am needing a little assistance with using a session variable and hope that someone may point me in the right direction.
    I have created a PHP page that uses the Dreamweaver 'User Authentication' feature, and the basics of this works fine, directing a user to the correct pages depending on whether they are or are not a valid user. I would like however to personalise the 'valid user' page with the persons Username as entered in the User Authentication table....a seemingly simple task using a session variable, but one that I just don't seem to be able to get working!
    The code generated for the UA on page 1 is as follows:
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['txtfirst_name'])) {
      $loginUsername=$_POST['txtfirst_name'];
      $password=$_POST['txtsurname'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "member_update.php";
      $MM_redirectLoginFailed = "login.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_panto, $panto);
      $LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND surname=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $panto) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
       $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;         
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    Firstly, the text highlighted in red above appears to be setting the session variable that I require. Is This correct?
    If so, what is the code that I need to place in page 2 to use that session variable? or
    Do I need to do something else on page 1 to properly assign the session variable?
    Would really appreciate your expertise
    Mark

    It looks as though you've set the columns incorrectly in the User Authentication server behavior. This is the SQL query that checks the user's credentials:
      $LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND surname=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
    You're looking for firstname and surname, whereas you should be looking for the user's login name and password.
    $_SESSION['MM_Username'] is a session variable that stores the user's login name. To use it in a subsequent page, all that's needed is for the page to begin with session_start(). You can then echo the value to display it.
    If you want to display the person's real name, you need to create a recordset in the second page using $_SESSION['MM_Username'] to find the firstname and surname. Alternatively, you can edit the existing code like this (I've copied only part of it):
      $LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $panto) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        $row = mysql_fetch_assoc($LoginRS);
         $_SESSION['full_name'] = $row['firstname'] . ' ' . $row['surname'];
        if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
       $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;
    You can then use $_SESSION['full_name'] in a subsequent page that begins with session_start().

  • Version migration, shared ssl, session variables

    I'm migrating a shopping cart application from Cold Fusion
    4.5 to a new server running MX 7, and have run into a weird problem
    transferring session variables.
    Basically, there's two sites running on one physical server.
    The catalog, and then the shared ssl checkout pages. I'll call them
    catalog.com and sharedssl.com.
    Under 4.5, if I passed CFID & CFTOKEN in a link from
    identically named applications on catalog.com to sharedssl.com, the
    session and all its associated variables would transition
    seamlessly forward. Under MX, this is no longer happening. The
    *very first page* on sharedssl.com (the one that was directly
    passed CFID & CFTOKEN) will have access to those variables, but
    any subsequent pages on sharedssl.com will just throw errors.
    Looking at the debugging info, it's obvious that under MX a
    new CFID and CFTOKEN are being assigned when the user goes to
    sharedssl.com, regardless of the session id that was passed on; as
    soon as the "old" CFID & CFTOKEN aren't being explicitly
    mentioned, the "new" ones take over, resulting in a completely
    blank session.
    Has anyone else experienced anything similar? Is there a
    simple fix?
    I have some ideas on how to make this work, but I'd really
    like to keep this projection a "migration," and not, ie., a
    "rewrite." I guess I'm wondering whether there's a configuration
    checkbox I'm unaware of, or perhaps some arcane option in
    cfapplication that will restore the old behavior.
    Thanks for any help,
    Tim

    On which page is the following code?
    After login, user is validated and set values to those session.variables:
    ........user validation codes here......................
    <cfif mylogin NEQ true>
          <cflocation url="/login/login.cfm">
          <cfabort
    <cfelse>
          <cfset session.loggedin="Yes">
          <cfset session.username="#Trim(Form.username)#">
         <CFSET qUserRights = LoginObj.getUserRights('#Trim(Form.username)#')>
         <cfset session.userrights = qUserRights><!--- it's a query --->
        <CFSET qUserGroup = LoginObj.getUserGroup('#Trim(Form.username)#')>
            <cfloop query="qUserGroup">
               <cfset session.usergroup = user_group>
               <cfbreak>
            </cfloop>
        <!--- ****************** ???????????????????????????????????????????????????????????????????????????
        When I do cfdump in at this level, I can see that all of these session variables have been assigned to their values.
        But these session variables are not accessible from other pages. Other pages still show these session variable without its value.
        So, when I use these cfdumps in the index.cfm it is shown as they're not yet assigned with any values   ****************** --->
       <cfdump var="#session.loggedin#">
       <cfdump var="#session.username#">
       <cfdump var="#session.userright#">
       <cfdump var="#session.usergroup#">
    </cfif>

  • Access session variable in Java Function in JSP

    Hi Experts !!
    I am developing an application using STRUTS MVC...
    Very sorry if u have problem understanding my question, i ll try to improve... and sorry if i can't post codes here
    Basic question is ....
    I want to open a word document on pageLoad of JSP, the word document is not a single document, there is a form in which there is a "name" and "template" whenever user clicks on a button there is one action attached to it which creates a copy of that template in a different folder.. on the next page OnLoad i want to open that particular document. for that i have created a variable and also have set in the session, just want to access it in the below code.
    I have a formbean in which i have a variable, the scope is session, that variable i have put it in session also. but i want to access that variable in a "java function" in JSP so that "onLoad" page that function should work.
    JSP---
    <script type="text/javascript">
    function openDocument() {
    var w = new ActiveXObject("Word.Application");
    var docText;
    var obj;
    var a;
    if (w != null) {
    w.Visible = true;
    obj = w.Documents.Open(I HAVE TO ACCESS THAT VARIABLE HERE);
    </script>
    FORMBEAN----
    public class CreateSOWFormBean extends ActionForm {
    private String workflowName;
    private String comment;
    private String sowTemplate;
    private String sowFileCreated;
    public String getSowFileCreated() {
    return sowFileCreated;
    public void setSowFileCreated(String sowFileCreated) {
    this.sowFileCreated = sowFileCreated;
    sowFileCreated is the variable that i have accessed in session and that value i have to pass in that function in JSP....
    I am aware of something like
    obj = w.Documents.Open(<%'sowFileCreated'%>);
    but i m not sure how to write....
    Plz help.....

    If you're working under a framework like struts you should definitely be using JSTL tags rather than scriptlet code to access variables within the page. With JSTL code <% codes can be almost entirely avoided.
    To transfer a value from a Servlet to a JSP don't use a session variable, use a request attribute. Session variables should only be used when values have to survive from one transaction to another.
    You can write something like:
    obj = w.Documents.open('<c:out value="${openURL}"/>');in the Javascript portion of your JSP.
    Just beware of potential problems with quotes. The coresponding code in the Servlet would be like:
    request.setAttribute("openURL", openUrl);

  • Login session variable - pls help before i slot myself

    im brand new to this guys and really struggling with logging
    in a member to their particular account as opposed to a general
    members section using dreamweavers login application and some basic
    php coding.
    i just cant seem to figure it out it (im stuck on the session
    variables i think..) and unfortunately my php is very poor at them
    moment!
    pls HELP!!
    below is the dreamweaver generated code from its basic login
    application.
    im using it in a dreamweaver template so im not sure if thats
    the issue but bascially im using 2 SQL tables i constructed to
    achieve this-
    1.) tblaccesslevel
    intLevelID (unsigned + auto increment + primary key)
    txtAccess
    (ive allocated various numerical access levels into
    txtAccess. ie. 1-7
    and
    2.) tblplayeraccount
    intUserID (unsigned + auto increment + primary key)
    txtFirstName
    txtLastName
    txtEmailAddress
    txtPassword
    intAccessLevel
    (ive generated 2 users in the above table tp test)
    in dreameavers server behaviors the recordset generated by
    the login server behavior simply says Log In User
    obviously i need a session variable somewhere to get the
    intUserId....
    also a relationship needs to be generated in the sql
    statement to connect the intAccessLevel but i think i can manage
    that (i think..)
    below is the code this application generated -
    if someone can give me some hints or if they've done
    something similiar pls provide the required code ...it would be a
    huge help!! i dont know what im doing wrong!!!
    <?php require_once('../Connections/Rugby.php'); ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
    session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
    $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['emailaddress'])) {
    $loginUsername=$_POST['emailaddress'];
    $password=$_POST['password'];
    $MM_fldUserAuthorization = "intAccessLevel";
    $MM_redirectLoginSuccess = "../player_home.php";
    $MM_redirectLoginFailed = "../failed.php";
    $MM_redirecttoReferrer = false;
    mysql_select_db($database_Rugby, $Rugby);
    $LoginRS__query=sprintf("SELECT txtEmailAddress, txtPassword,
    intAccessLevel FROM tblplayeraccount WHERE txtEmailAddress='%s' AND
    txtPassword='%s'",
    get_magic_quotes_gpc() ? $loginUsername :
    addslashes($loginUsername), get_magic_quotes_gpc() ? $password :
    addslashes($password));
    $LoginRS = mysql_query($LoginRS__query, $Rugby) or
    die(mysql_error());
    $loginFoundUser = mysql_num_rows($LoginRS);
    if ($loginFoundUser) {
    $loginStrGroup = mysql_result($LoginRS,0,'intAccessLevel');
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;
    if (isset($_SESSION['PrevUrl']) && false) {
    $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    header("Location: " . $MM_redirectLoginSuccess );
    else {
    header("Location: ". $MM_redirectLoginFailed );
    ?>

    Are you wanting to redirect them to a specific page based on
    their username or to the same page with dynamic content based on
    their username?

  • OBIEE | Using Dynamic Session Variable in Physical Layer

    Hi All,
    Any idea if we can use Dynamic Session Variables (I think they are also called Repository Variables) in our physical layer. I basically need to set the value of this variable from dashboard when a link is clicked, and then use this in my SELECT query at physical layer so that OBIEE does not pull all the data from the database tables.
    Regards
    Adeel Javed
    Edited by: user10642426 on Apr 6, 2009 2:03 AM

    Christian,
    Thanks for the quick response, ok we have actually moved to a different solution now, we are actually using Direct Database Request because one of our reports is supposed to be accessing direct transactional system i.e. for this report we are using OBIEE as a reporting tool. We are able to do that and even create links between different reports i.e. based on prompt in Report A filter Report B, but the scenario now is that we need to set a presentation variable from Report A when a navigation link gets clicked, because so far according to our knowledge direct SQL only allows presentation variables in its WHERE clause. So, any ideas how can we set a presentation variable when a navigation link is clicked. Thanks.
    Regards
    Adeel Javed
    Edited by: adeeljaved on Apr 6, 2009 11:43 PM

  • Flashbuilder and Cold Fusion  (using application/session variables)

    I would like to know if anybody uses Flashbuilder with Cold Fusion?
    Since Cold Fusion has lots of different scopes of variables (application, session, client, form, url, etc...) how do you manage this in Flex/Flashbuilder?
    Are there forums or groups specifically for using Flex3/Flashbuilder with backend server side technologies such as Cold Fusion?.
    The only server side technology that I have interest in is Cold Fusion.  I've seen basic tutorials and videos using Cold Fusion CFC's and data binding with Flex.  I haven't seen or heard anything using a Cold Fusion application, session, or client variable in Flex.
    Hopefully some of you have some experience on this topic.
    Thanks

    hey popster,
    i too had this question some time ago. my entire app was built on CF with HTML before i started integrating Flex 3 with it. i found that i needed to create cookie variables for all my session variables i was using in order to maintain and remember who the user was in my CFC calls. i also found that after i compiled a flex app, i changed the .html to .cfm (the file that loads the compiled SWF file). by doing this i was able to pass CF session variables into the flex app and you can refer to these anywhere in Flex by using Application.application.parameters.{variable name here} 
    add the CF variable in the FlashVars line to pass it into Flex (see the last line of code). this will create a variable (in my case i'm passing session.employeenumber). then in your flex app you can reference it by using Application.application.parameters.emplid:
    AC_FL_RunContent(
       "src", "Request",
       "width", "100%",
       "height", "87%",
       "align", "middle",
       "id", "Request",
       "quality", "high",
       "bgcolor", "#869ca7",
       "name", "Request",
       "allowScriptAccess","sameDomain",
       "type", "application/x-shockwave-flash",
       "pluginspage", "http://www.adobe.com/go/getflashplayer",
       "wmode","transparent",
       "FlashVars","emplid=<cfoutput>#session.employeenumber#</cfoutput"
    A little trick I learned (does Adobe really expect us to re-engineer how our apps have been working by no longer using sessions for Flex?). Then in your CFCs if you also create cookies for every session variable you can maintain the variables based on user login. HOPE THIS HELPS!
    -Matt

  • Can a session variable be an array?

    I have a dynamic list which may have multiple values
    selected. I can capture the resulting array in a $_POST variable.
    Using the Insert Record behavior, I cannot cause the $_POST
    variables to be sent to the redirect page unless I use session
    variables. Can a session variable be defined as an array? If so,
    how do I declare it as an array and how do I move the form variable
    array to a session variable array? If it can't be an array, how do
    I define the target variables for 0 to x items from a form variable
    array?

    I can't answer specifically for PHP but in the other
    languages as session
    variable is basically a holding place for a value. As a comma
    is a valid
    character then if you have a comma delimited list (which is
    what a form give
    you if multiple items are selected) then you simple assign it
    to the session
    variable and it will be stored as such.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Rankin" <[email protected]> wrote in
    message
    news:ef9suk$iqe$[email protected]..
    >I have a dynamic list which may have multiple values
    selected. I can
    >capture
    > the resulting array in a $_POST variable. Using the
    Insert Record
    > behavior, I
    > cannot cause the $_POST variables to be sent to the
    redirect page unless I
    > use
    > session variables. Can a session variable be defined as
    an array? If so,
    > how
    > do I declare it as an array and how do I move the form
    variable array to a
    > session variable array? If it can't be an array, how do
    I define the
    > target
    > variables for 0 to x items from a form variable array?
    >

  • Setting & Retrieving Session Variables

    Hi,
    I’m new at session variables and having trouble
    understanding the basics.
    I have a form with two dropdowns. I want to store the
    selections from both in session variables. Then pass those to
    another page where I want to display the selected values in my
    headline such as “You searched for [value1] and [value2]." I
    can’t get this to work right. I’ve gone through DW Help
    and tutorials and still can’t figure it out.
    Any help would be much appreciated.
    DW CS3, ASP and Access
    Thanks,

    > I?m new at session variables and having trouble
    understanding the basics.
    >
    > I have a form with two dropdowns. I want to store the
    selections from both
    > in
    > session variables. Then pass those to another page where
    I want to display
    > the
    > selected values in my headline such as ?You searched for
    [value1] and
    > [value2]." I can?t get this to work right. I?ve gone
    through DW Help and
    > tutorials and still can?t figure it out.
    >
    > Any help would be much appreciated.
    >
    > DW CS3, ASP and Access
    On your form action page, put this in:
    <%
    Session("varOne") = Request.Form("dropdown1")
    Session("varTwo") = Request.Form("dropdown2")
    %>
    To write the sessions to the page, put this:
    You searched for <%=varOne%> and <%=varTwo%>.

  • Session Variables Help

    Hi, all. I posted questions before when I was stuck, and you
    all were very friendly and helpful. I am having difficulty
    understanding how to create, POST() to, and then REQUEST()
    information stored in session variables using Dreamweaver. I am
    developing the pages using PHP, and have a MySQL database uploaded
    and working. Displaying, editing, and adding to the database is
    ongoing, as I type!
    Adobe has thankfully started the session for me with the
    <?php if(!isset($_SESSION)) { session_start(); } ... because I
    have a log in/log out server behavior on the pages.
    I need to add two pieces of information collected from the
    page, one value of which is inputted by the user on a form, and the
    other value is obtained from values from the part of the recordset
    shown on the page. What I expect I need is something like a
    2-dimensional array to store both sets as a pair, but while I
    expect I can do this, I am really not sure. The documentation ends
    before fully explaining this part.
    An example of what I am trying to do is a product detail page
    from an on-line store catalog, with an "add to cart" button. The
    person has navigated to that page, shows the information for
    productID=1497 with an input field for quantity, so a person can
    order more than one of that product if they choose, and an "add to
    cart" button which would write the productID and quantity values to
    the session variable. Is there a simple and easy to use Dreamweaver
    feature I am missing that can do this?
    If I need to code this myself, are there good resources for
    figuring this out? What I've found thus far is either too basic, or
    too advanced. I've been using Dreamweaver's Insert>Date
    Objects> menu to get everything done thus far.
    Of course, once the session variables are created I will need
    to $_REQUEST() the information on a later page and display it on
    one of Dreamweaver's dynamic tables. I hope that once I understand
    how to $_POST() the values to the session variable, $_REQUEST()ing
    the information on another page will be apparent.
    Also, please don't assume I know anything more than what I
    wrote in my post. I may be an old school programmer, think punch
    cards and FORTRAN, but I can get lost easily on things most people
    nowadays think are pretty basic.

    I got it fixed. It took two weeks to figure out the solution,
    but...
    It all boils down to the fact that you can get away with
    sloppy programming if your MySQL database is located on 'localhost'
    that you can't get away with if it is located remotely.
    Basically, you need to activate the database before you make
    a mysql_query. My bad. Problem solved. And now that I know I need
    to do this, problem never rediscovered.
    ~ Scott
    oldcountrypeddler.com

  • Workspace or Security ID session variable

    Hello -
    Is it possible to get the Workspace or Security Group ID from a session variable (e.g., v('WORKSPACE') ) so that I can use it to automatically create a user in my application without hard-coding?
    For instance, here is some of my code...I'd like to avoid hard-coding <WORKSPACE>.
    WWV_FLOW_SECURITY.CREATE_FND_USER(
    WWV_FLOW_ID.NEXT_VAL,
    WWV_FLOW_SECURITY.FIND_SECURITY_GROUP_ID(<WORKSPACE>),
    P_USERNAME,
    P_FIRST_NAME,
    P_LAST_NAME,
    'Auto-created',
    P_EMAIL_ADDRESS,
    P_PASSWORD
    Basically, I am trying to allow users to create their own profiles from within the application itself. I have a custom page which calls the code above more or less, then redirects the user to the login page to let HTML DB take over authentication. Is there a better way to do this?
    Thanks!
    Dave

    David,
    To get back the ID of the current workspace, you can reference v('WORKSPACE_ID').
    Note that this function v() is only usable in the context of an HTML DB application. You can reference this function directly in an HTML DB application or PL/SQL packages called by your PL/SQL application. But if you connect to your database directly from SQL*Plus and reference v('of_anything'), it should return null.
    Joel

  • Question about session variables and binding

    Hi All,
    I'm a newbie with Application Express. I've gone through several tutorials and a book, and now I'm actually getting started with apex. My first adventure is a tiny little form, where all you do is fill it out and it sends an email. Pretty simple.
    And, i have it working just fine - but I have a question about something I don't quite understand. Basically, I am generating the email text in a page process. And some of the form fields work fine if i reference them as *:ACCT_NAME*, but some give me the dreaded "not all variables bound" error. For the ones that give me the error, I can reference them like V('ACCT_NAME').
    So, as a newbie, I'm a little confused. When is it appropriate to use the V function, and when it is appropriate to use binding? Why would one of the fields work with binding but not another from the same form?
    Thanks for any clarification you can offer,
    Lisa

    Lisa,
    A bind variable is a place holder variable available in an environment.It is used quite frequently(outside Apex Context) in SQL and PLSQL scripts and especially in Dynamic SQL statements.Many times using a bind variable gives better performance. In the Apex environment,page items and many other variables related to the session are available as bind variables and hence their value can be referred in SQL,PLSQL contexts as :VARIABLE_NAME.
    Now V() function is an apex specific function which returns the value of an apex session variable outside the apex environment. So as Machaan pointed out, it is used in
    procedures and triggers that gets called from within an apex session. This is required since the bind variables themselves are not directly available in the SQL environment but their values from the corresponding session can be accessed by this apex built-in function.
    The length of any Bind variable name is limited to 30 characters, this is a limitation inherited from Oracle SQL itself and hence session variables(page or application items) whose name has a length which exceeds 30 characters cannot be used as the :ITEM_NAME format. In such cases you would have to use the v() method again. This might be happening in your case.

Maybe you are looking for

  • Doubt in export/import

    Hi All, I have oracle 9i database. i have a requirement from one of my user. He wants to restore 2 tables as of 31 dec 2010. initially i thought of using flashback_scn but seems like i cant use this in 9i can anyone please help how to find the last S

  • How to Integrate Client system and Server system?

    How to Integrate Client system and Server system? A scenario which is working successfully in server system, not working in client system. help me out in this issue. pankaj.

  • Occasionly stuck at the gray start up screen...

    About two weeks ago my G5 got stuck at the gray screen and the fans started up, full blast. I attempted to reboot, but still the same issue. I unplugged the machine for about 24 hours and luckily it turned on as it should upon my next attempt, howeve

  • Table and transaction

    Hi , I created one table and also creted a transaction code for that table where when we execute the transaction all the contents of the table are displayed in display mode. Now i made the changes in the table (like field names , dataelements) and ac

  • CS MARS & McAfee's Foundstone 6.5 and 6.7

    A few weeks ago I upgraded my MARS to the latest and greatest version with the intention of connecting in my Foundstone Appliance information. After a few days of backups, updates and restores, I was ready to link them together. It failed. I opened a