473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 help me because i need it urgently?
Jun 2 '08 #1
12 1575
On Tue, 22 Apr 2008 06:23:15 +0200, Angkor <ea******@gmail.comwrote:
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 help me because i need it urgently?
1) Check wether the cookie 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
Jun 2 '08 #2
On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
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 help me because i need it urgently?
You are using IIS?
Jun 2 '08 #3
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
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 help 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.
Jun 2 '08 #4
On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
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 help 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.
Jun 2 '08 #5
Captain Paralytic schreef:
On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
>On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>>On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
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 help 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
Jun 2 '08 #6
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");
Jun 2 '08 #7
On Tue, 22 Apr 2008 21:01:53 +0200, venti
<ti********@shieldinvestmentgroup.comwrote:
>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
Jun 2 '08 #8
On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Tue, 22 Apr 2008 21:01:53 +0200, venti

<timgreg...@shieldinvestmentgroup.comwrote:
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
session_register may be depracated, but if you're running a windows
server for anything, you're crazy. Sure it's easy, you just run the
wamp executable. But then things start to get weird, like session
data dissapears. So if you're still using WAMP/WIMP for production,
don't.
Jun 2 '08 #9
On Tue, 22 Apr 2008 22:14:36 +0200, venti
<ti********@shieldinvestmentgroup.comwrote:
On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Tue, 22 Apr 2008 21:01:53 +0200, venti

<timgreg...@shieldinvestmentgroup.comwrote:
>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.

session_register may be depracated, but if you're running a windows
server for anything, you're crazy.
Nonsense. A nice Windows Server with Exchange, BackOffice, and all that
Office / Outlook / SQL integration stuff is perfectly suitable for an
mid-sized company (and no matter what people say often more cheaper,
reliable, and easier to maintain by the people there themselves than all
that fancy free and/or open source equivalents). If they need a website
tightly integrated into that system (identify users etc.), using Windows &
IIS is likely to be a lot easier.
Sure it's easy, you just run the
wamp executable. But then things start to get weird, like session
data dissapears. So if you're still using WAMP/WIMP for production,
don't.
Depends on the circumstances. For a dedicated webserver (and only that)
I'd say you were correct, but don't underestimate the wants, needs and
other roles of the same machine in intranets.
--
Rik Wasmus
Jun 2 '08 #10
venti wrote:
On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Tue, 22 Apr 2008 21:01:53 +0200, venti

<timgreg...@shieldinvestmentgroup.comwrote:
>>>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

session_register may be depracated, but if you're running a windows
server for anything, you're crazy. Sure it's easy, you just run the
wamp executable. But then things start to get weird, like session
data dissapears. So if you're still using WAMP/WIMP for production,
don't.
Sometimes there are very valid reasons for running a Windows server.
Linux is NOT for everyone!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #11
On 22 Apr, 15:24, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
Captain Paralytic schreef:
On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
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 help 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).
And in one of your responses over on comp.lang.javascript, the OP did
not say that the advce he was looking for was for him to use, but that
did not stop you offering incorrect advice.

IIS can operate OK with PHP, but there are so many other things that
it does not do anywhere near as well as apache, I offered the advice I
did. I didn't offer it to you, so I suggest you just ignore it.

Jun 2 '08 #12
Captain Paralytic schreef:
On 22 Apr, 15:24, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
>Captain Paralytic schreef:
>>On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
>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 help 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).

And in one of your responses over on comp.lang.javascript, the OP did
not say that the advce he was looking for was for him to use, but that
did not stop you offering incorrect advice.
What are you talking about?
I do not understand the above sentence very well, but I think it boils
down to your opinion I gave somebody bad advice. Correct?

How is that relevant to this discussion what I wrote in c.l.j?

I am at a loss. :-/

It seems to me you are offended easily, and you didn't like it I said
your Apache advice doesn't solve the OPs problem since he is on IIS.
If that is the case: Sorry mate, I didn't want to offend you.
>
IIS can operate OK with PHP, but there are so many other things that
it does not do anywhere near as well as apache, I offered the advice I
did. I didn't offer it to you, so I suggest you just ignore it.
Well, even though I agree with your advise I will ignore it, if you like
that.

Lighten up a little Captain, it is almost weekend.

Erwin Moller
Jun 2 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
2
by: PulsarSL | last post by:
Hey I have a WAMP setup (windows/apache/mysql/php). I'm running the latest version of all of them with a default installation of all of them. PHP works great with apache (as a module, not...
1
by: Duncan | last post by:
I have a strange problem with sessions in PHP 5. I have a simple script that prints a random number both as a string and a picture on the screen. When I run the script for the first time, it works...
9
by: salad | last post by:
Due to an earlier posting I read in this newsgroup regarding Office 2007 beta, I downloaded it. After I DL'd it, I got an invitation from MS to get WinVista. I am now wondering if, since both...
6
by: j2ee.singh | last post by:
Hi, I'm looking to buy a new laptop primarily to learn & practice .NET and C#. My Question is: Is there any requirement for .NET and C# in terms of the following Operating Systems: -...
2
by: =?Utf-8?B?UmFtZXNo?= | last post by:
Hi, I've written one simple windows service using .NET 2003 with Timer. When I install the service on Win XP it works as expected, but on Vista I can see the service getting installed but Timer is...
2
by: mindspring | last post by:
A pc that was created in MS office xp's Access 2002 has been working fine on a windows vista Ultimate pc that has MS OFfice Vista Edition. But all of the sudden it stopped working and gives this...
1
by: =?Utf-8?B?TGlvbmVsIEI=?= | last post by:
I have just installed Windows Vista onto my Toshiba Equium and found that my toughpad dosn't work. It did when I used XP. Can anyone help. I cant find anything to help on the Toshiba website.
1
by: =?Utf-8?B?a2xyNzd1aw==?= | last post by:
Please help! I have windows vista, my automatic updates will not download, My firewall will not switch on, and I cannot back up files as windows keeps freezing and not responding. I have AVG and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.