[ic] Passing CGI variables in URL fails because of session IDs

New Media E.M.S. ic_users at newmediaems.com
Wed May 26 15:01:21 EDT 2004


At 11:32 AM 5/26/2004, you wrote:

>Greetings list,
>
>There is probably a simple explanation for this, but I can't find it.  When
>I write some code to make my own "flypage" manually, based on URL
>parameters, I run into problems when a session ID is already in the URL.
>For example, if I have the following code:
>
><a href="[href view]?[scratch somevar]">View</a>
>
>It expands to:
>http://mydomain.com/cgi-bin/catalog/view.html?expid=12345
>
>However, if I have a session going on, I get
>
>http://mydomain.com/cgi-bin/catalog/view.html?id=aCvTyGYA&mv_pc=20?expid=12345
>
>Which, of course, doesn't work because the second '?' should be an '&'.  I
>wrote a bit of perl to test for a session ID in the URL and put an ampersand
>instead of a question mark if necessary, but this seems to be a hack and I'm
>guessing there's a more elegant solution.  Can anyone help?

Interchange provided facilities to pass arguments in the URL without 
disrupting normal behavior. For a simple argument:

         <a href="[area href=foo arg=bar]">foobar</a>

For multiple arguments:

         <a href="[area
                         href=foo
                         form="
                         var1=value1
                         var2=value2
                         var3=value3
         "]">fooform</a>


- Ed


===============================================================
New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          edl at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
=============================================================== 



More information about the interchange-users mailing list