|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi All,
I am trying to pass value from a page to another page through session variable. session_start(); $_SESSION["ses_aid"] = $value("aid"); ..... $_SESSION["ses_aid"] has value within its original page. But $_SESSION["ses_aid"] has empty value in another page. Even I have placed session_start(); in every page. I have developed the site in Windows Vista Home Premium with latest version of both PHP and mySQL. Could you please me because i need it urgently? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Tue, 22 Apr 2008 06:23:15 +0200, Angkor <eapsokha@gmail.com> wrote:
> Hi All, > > I am trying to pass value from a page to another page through session > variable. > > session_start(); > $_SESSION["ses_aid"] = $value("aid"); > .... > > $_SESSION["ses_aid"] has value within its original page. But > $_SESSION["ses_aid"] has empty value in another page. Even I have > placed session_start(); in every page. > > I have developed the site in Windows Vista Home Premium with latest > version of both PHP and mySQL. > > Could you please me because i need it urgently? 1) Check wether the is accepted by the browser. 2) Check wether the output of session_id() stays the same. 3) Check wether there's a file created in session.save_path, and possible user write permissions for this path. -- Rik Wasmus |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 22 Apr, 04:23, Angkor <eapso...@gmail.com> wrote:
> Hi All, > > I am trying to pass value from a page to another page through session > variable. > > session_start(); > $_SESSION["ses_aid"] = $value("aid"); > .... > > $_SESSION["ses_aid"] has value within its original page. But > $_SESSION["ses_aid"] has empty value in another page. Even I have > placed session_start(); in every page. > > I have developed the site in Windows Vista Home Premium with latest > version of both PHP and mySQL. > > Could you please me because i need it urgently? You are using IIS? |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 22 Apr, 04:23, Angkor <eapso...@gmail.com> wrote: > > > > > Hi All, > > > I am trying to pass value from a page to another page through session > > variable. > > > session_start(); > > $_SESSION["ses_aid"] = $value("aid"); > > .... > > > $_SESSION["ses_aid"] has value within its original page. But > > $_SESSION["ses_aid"] has empty value in another page. Even I have > > placed session_start(); in every page. > > > I have developed the site in Windows Vista Home Premium with latest > > version of both PHP and mySQL. > > > Could you please me because i need it urgently? > > You are using IIS? - How to check whether session_id(); stay the same? If not, what should i do? - Yes, I am using IIS. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On 22 Apr, 14:40, Angkor <eapso...@gmail.com> wrote:
> On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.com> wrote: > > > > > On 22 Apr, 04:23, Angkor <eapso...@gmail.com> wrote: > > > > Hi All, > > > > I am trying to pass value from a page to another page through session > > > variable. > > > > session_start(); > > > $_SESSION["ses_aid"] = $value("aid"); > > > .... > > > > $_SESSION["ses_aid"] has value within its original page. But > > > $_SESSION["ses_aid"] has empty value in another page. Even I have > > > placed session_start(); in every page. > > > > I have developed the site in Windows Vista Home Premium with latest > > > version of both PHP and mySQL. > > > > Could you please me because i need it urgently? > > > You are using IIS? > > - How to check whether session_id(); stay the same? If not, what > should i do? > - Yes, I am using IIS. I'd advise you to install wampserver or XAMPP, if that's an option. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Captain Paralytic schreef:
> On 22 Apr, 14:40, Angkor <eapso...@gmail.com> wrote: >> On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.com> wrote: >> >> >> >>> On 22 Apr, 04:23, Angkor <eapso...@gmail.com> wrote: >>>> Hi All, >>>> I am trying to pass value from a page to another page through session >>>> variable. >>>> session_start(); >>>> $_SESSION["ses_aid"] = $value("aid"); >>>> .... >>>> $_SESSION["ses_aid"] has value within its original page. But >>>> $_SESSION["ses_aid"] has empty value in another page. Even I have >>>> placed session_start(); in every page. >>>> I have developed the site in Windows Vista Home Premium with latest >>>> version of both PHP and mySQL. >>>> Could you please me because i need it urgently? >>> You are using IIS? >> - How to check whether session_id(); stay the same? If not, what >> should i do? >> - Yes, I am using IIS. > > I'd advise you to install wampserver or XAMPP, if that's an option. Well he didn't ask for that, did he? He is using IIS, and PHP works perfectly well on IIS (well almost perfectly). I would advise him to check Riks questions. Regards, Erwin Moller |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
> Well he didn't ask for that, did he? > He is using IIS, and PHP works perfectly well on IIS (well almost > perfectly). > > I would advise him to check Riks questions. > > Regards, > Erwin Moller He may not have asked, but sweet heavens just move to linux and be done with it. Short of that, run WAMP. Short of that, don't forget: session_register("ses_aid"); |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Tue, 22 Apr 2008 21:01:53 +0200, venti
<timgregory@shieldinvestmentgroup.com> wrote: >> Well he didn't ask for that, did he? >> He is using IIS, and PHP works perfectly well on IIS (well almost >> perfectly). >> >> I would advise him to check Riks questions. > > He may not have asked, but sweet heavens just move to linux and be > done with it. Nonsense. While I prefer a LAMP server, running a WIMP is not that difficult either. > Short of that, don't forget: > session_register("ses_aid"); session_register() is antiqued now. If you're still using it: don't. -- Rik Wasmus |
|
![]() |
| Outils de la discussion | |
|
|