Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default client Vs Session

    Hi sorry for another newbie question but I was just wondering when making
    variables last the whole time a user is logged in are you best using client or
    session variables i am currently using session variables but would there be any
    advantages or not if i were to change it to client variables?

    Thanks in advance.

    theDude28 Guest

  2. Similar Questions and Discussions

    1. #39455 [NEW]: Can't generate different session id on same client
      From: lizy at nlc dot gov dot cn Operating system: FreeBSD 6.1 PHP version: 4.4.4 PHP Bug Type: Session related Bug...
    2. Session & Client Variables non-existent
      Hi there-- I recently moved from Cold Fusion server 4.5 to ColdFusion MX 6.1 Developer on my development machine. Since then, I can't maintain...
    3. Sharing SESSION/CLIENT variables across applications
      Yeah, there are several application variables that have the same name between applications. So basically the only way to do it, while keeping...
    4. send page to client when session expires
      A client-side timer fires and does the page redirect - you can't do it from global.asa since there is no page request context to redirect.with when...
    5. Client (Browser) Connection/Session Question
      So, there is no way in PHP code to check to see who is still connected? On Fri, 11 Jul 2003 12:38:34 +0800, "powerboy"...
  3. #2

    Default Re: client Vs Session

    If you needed to store structure variables in the user's state container
    (client vs session) you would need to use session variables, as client
    variables can't store structures. Also, client variables can be set to forever,
    whereas session variables eventually time out.

    I'm about to pose a similar question regarding using session variables AND
    cookies in a new topic. Look for it if you're interested.

    michaelmuller Guest

  4. #3

    Default Re: client Vs Session

    If you only want your variables to last for the duration of the session then
    use Session variables. If you want your variables to be available the next time
    the same user comes back to your applicatiion then you want to use Client
    variables.

    Session variables are a little faster since they are stored in CF memory on
    the server. Since Client variables are persisted (saved for a long period of
    time) they are normally stored in a database.

    michaelmuller is right, if you need to store complex datatypes (like
    structures or queries) you would need to use Session variables. Client
    variables can only be numeric or strings.

    gclausen Guest

  5. #4

    Default Re: client Vs Session

    Hi thanks for your reply is it still ok to store session variables in a database for later analysis or would i have to use client variables?

    Thanks.
    theDude28 Guest

  6. #5

    Default Re: client Vs Session

    Complex objects can be stored in the client, they just need to be serialized first cfwddx can help with this. Obviously doing this for everything would be a pain in the a--
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139