PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Sessions not working in windows vista
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Sessions not working in windows vista

Réponse
 
LinkBack Outils de la discussion
Vieux 22/04/2008, 05h23   #1
Angkor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sessions not working in windows vista

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?
  Réponse avec citation
Vieux 22/04/2008, 06h33   #2
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista

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
  Réponse avec citation
Vieux 22/04/2008, 10h05   #3
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista

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?
  Réponse avec citation
Vieux 22/04/2008, 15h40   #4
Angkor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista

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.
  Réponse avec citation
Vieux 22/04/2008, 16h08   #5
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista

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.
  Réponse avec citation
Vieux 22/04/2008, 16h24   #6
Erwin Moller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista

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
  Réponse avec citation
Vieux 22/04/2008, 20h01   #7
venti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista


> 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");
  Réponse avec citation
Vieux 22/04/2008, 20h19   #8
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sessions not working in windows vista

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h04.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,22102 seconds with 16 queries