Re: Hide GET Variables --> Pass values using Session

From: Kenneth Downs (knode.wants.this_at_see.sigblock)
Date: 03/17/05


Date: Thu, 17 Mar 2005 11:22:05 -0500

NSpam wrote:

> Kenneth Downs wrote:
>> André Gasser wrote:
>>
>>
>>>
>>>now my question is, if it's possible to hide those values, so they
>>>don't appear on the url, but sorting should work anyway. This means
>>>that
>>>
>>
>>
>> You need to know about the HTML technology of forms and the "post"
>> action, and the PHP array $_POST.
>>
>> Try this, then look up the HTML spec at www.w3c.org and reread the
>> tutorial to PHP:
>>
>> <form action="someprogram.php" method="post">
>> Type something here: <input name="test"/>
>> <button type="submit"/>
>> </form>
>>
>> Then make someprogram.php:
>>
>> <?php
>> echo "You entered: ".$_POST["test"];
>> ?>
>>
>> Whether or not you store these preferences in a session or a database is
>> another discussion.
> Yup use forms and/or sessions to hide the info, a database table is
> another option, guess it depends how sensitive the GET parms are. If you
> can then do it server side.

I've been meaning to run some definitive speed tests to determine relative
speeds of db queries vs includes (with various path depths) vs extra bytes
on the wire for hidden inputs, but I'm just too durn lazy, it keeps getting
pushed back.

-- 
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)


Relevant Pages

  • Re: Session or...?
    ... Typically you want to minimize the number of database trips, as well as minimize the amount of information you hold in memory. ... User Credentials, Shopping Cart Contents, Misc Preferences. ... The session would be a good place to store the ID and Qty. ...
    (microsoft.public.dotnet.general)
  • Re: Please! Doesnt anyone know a better way to do this?
    ... account, they need to automatically be directed to the page to enter data ... session variable on the Account page. ... I assume here that you're checking a database when the user attempts to ... When a new user attempts to login or clicks to register, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Retrieving state information from a middle tier
    ... Now this very first call can make session root entry into an xml file like ... We have a middle tier which is made up ... > The current implementation only allows for one database to be served up. ... > longer use the middle tier as the source of the connection properties. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Horizontal scaling - advice needed
    ... the session can be unambiguously proxied to the right backend server, ... To start with have a single database machine. ... Full database clustering is challenging, but if your site is making you lots ... For transient session state, ...
    (comp.lang.ruby)
  • Re: VirtualPathProvider and Application Restart
    ... the session state to the Database Server and move a lot of lightweight ... to unload it from the AppDomain. ... When you update an ASPX file, ...
    (microsoft.public.dotnet.framework.aspnet)