473,659 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1587
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_pa th, 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...@y ahoo.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...@y ahoo.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...@y ahoo.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_star t();
$_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_registe r("ses_aid");
Jun 2 '08 #7
On Tue, 22 Apr 2008 21:01:53 +0200, venti
<ti********@shi eldinvestmentgr oup.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_registe r("ses_aid");
session_registe r() 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.comwro te:
On Tue, 22 Apr 2008 21:01:53 +0200, venti

<timgreg...@shi eldinvestmentgr oup.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_registe r("ses_aid");

session_registe r() is antiqued now. If you're still using it: don't.
--
Rik Wasmus
session_registe r 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********@shi eldinvestmentgr oup.comwrote:
On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
>On Tue, 22 Apr 2008 21:01:53 +0200, venti

<timgreg...@sh ieldinvestmentg roup.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_registe r("ses_aid");

session_regist er() is antiqued now. If you're still using it: don't.

session_registe r 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

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

Similar topics

7
7519
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 including the php.net manual. In the manual it said to include something like the following:
2
17166
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 cgi), except that sessions aren't working. The script at the bottom of this post never increments my hit count. Do I need to turn sessions on somehow in php.ini? Thanks,
1
5208
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 perfectly. However, when I refresh the page, new updated random number does not propagate to the image displayer script through sessions. The image displayer script continues showing the old number instead of the new random number. I checked the...
9
2682
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 are betas, it is best to buy a new computer? My current computer setup is a Pentium 4, 1 gig memory, 2.66 ghz, 60-80 gig disk drive. MS's requirements for a WinVista computer is A modern processor (800mz)
6
4270
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: - Windows Vista Home Basic - Windows Vista Business
2
1378
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 not working. Please HELP.
2
2719
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 error, when a button is pressed. The button launches procedures to download and parse XML files. This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For...
1
3504
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
1526
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 spyware doctor, I have run both and they haven't picked up any virus. I have tried to download another antivirus but now won't download anything. Tried a system restore which I think worked but this didnot help and now I can't open my Itunes as...
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.