Re: [php-list] Sessions & Cookies

2007-04-14 Thread Gordon Stewart
On 14 Apr 2007 01:26:19 -0700, Pete <[EMAIL PROTECTED]> wrote: > Using the same template, and replacing the text or images, depending on > the language, is the way that the big open source programs, like > osCommerce, work. > > Perhaps if you downloaded that, you could see how they do it, it wo

Re: [php-list] Sessions & Cookies

2007-04-14 Thread Pete
In message <[EMAIL PROTECTED]> , Gordon Stewart <[EMAIL PROTECTED]> writes >- Im just testing / updating the various scripts now - (ive got one >directory with the scripts, But i need to create sub-folders for each >language - & update the script to use templates...) Using the same template, and r

Re: [php-list] Sessions & Cookies

2007-04-13 Thread Gordon Stewart
On 13 Apr 2007 15:35:59 -0700, Rob M <[EMAIL PROTECTED]> wrote: > Does this work ? > $language=$_SESSION['language']; > if(!isset($language)) > > I am curious as I would have thought the '$language =' would have made it > 'set' ? > Is $language=NULL; the same as unset($language); ? Thank

Re: [php-list] Sessions & Cookies

2007-04-13 Thread Rob M
- Original Message - From: "Gordon Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 13, 2007 9:25 PM Subject: Re: [php-list] Sessions & Cookies On 4/13/07, Gordon Stewart <[EMAIL PROTECTED]> wrote: > - Its simple - but

Re: [php-list] Sessions & Cookies

2007-04-13 Thread Gordon Stewart
On 4/13/07, Gordon Stewart <[EMAIL PROTECTED]> wrote: > - Its simple - but time-consuming (test & re-test etc)... > > I'll google it & find tutorials... Thanks... All fixed - a short piece of code allows me to change languages easily. $language=$_REQ

Re: [php-list] Sessions & Cookies

2007-04-13 Thread Gordon Stewart
On 13 Apr 2007 03:22:06 -0700, Pete <[EMAIL PROTECTED]> wrote: > That's the way to do it. In fact, it's quicker, because you don't have > to read the cookie from the users machine. > > As a matter of interest, the session is not closed as soon as the window > is closed - it doesn't actually k

Re: [php-list] Sessions & Cookies

2007-04-13 Thread Pete
In message <[EMAIL PROTECTED]> , Gordon Stewart <[EMAIL PROTECTED]> writes >Hi there, > >I know that users can switch cookies off - Via their browsers... > >Is that true also for sessions ? Sessions are server side, so no... >Basically - we have an existing site, but we are planning to add >langu

Re: [php-list] Sessions & Cookies

2007-04-13 Thread Rob M
- Original Message - From: "Gordon Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 13, 2007 2:11 PM Subject: [php-list] Sessions & Cookies Hi there, I know that users can switch cookies off - Via their browsers... Is that true also

[php-list] Sessions & Cookies

2007-04-12 Thread Gordon Stewart
Hi there, I know that users can switch cookies off - Via their browsers... Is that true also for sessions ? Basically - we have an existing site, but we are planning to add languages etc too it, However do not want to add another / extra variables to the URL eg :- ?language=english&(rest of URL