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

Home Posts Topics Members FAQ

Where does php session cookies stored

Hi

Where does the cookies stored in the client machine that php
creates after calling session_start() function.

I am using IE... I checked in the following folders but no
cookies are stored.

1)C:\Documents and Settings\Admini strator\Local Settings\Tempor ary
Internet Files
2)C:\Documents and Settings\Admini strator\Cookies
3)C:\Documents and Settings\Admini strator\Cookies \index.dat
moses

Sep 28 '06 #1
3 12704
<mo************ @gmail.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Hi

Where does the cookies stored in the client machine that php
creates after calling session_start() function.

I am using IE... I checked in the following folders but no
cookies are stored.

1)C:\Documents and Settings\Admini strator\Local Settings\Tempor ary
Internet Files
2)C:\Documents and Settings\Admini strator\Cookies
3)C:\Documents and Settings\Admini strator\Cookies \index.dat
moses
Hi Moses,

It depends whether the session handler is actually set to use cookies.

check in the IE cookie store: open internet explorer then on the tools
menu go to Internet Options then in the general tab, temporary files
section click 'Settings' then 'view files'
the physical location is hidden and has a random character string in the
pathname. Using the inbuilt IE function is the easiest way to find it

You should be able to open the cookie file in notepad.

Cheers

Ron
Sep 28 '06 #2
Hi Ron

Thanks for ur reply.. I have some more questions please....

I tried with what u said but I could not find the cookie
file I am sure that the session handler is set to handle cookies
because I dont have any problem with accessing cookie variable and
session variable every thing works fine But I am curious about seeing
the cookie file what my program has created. Meanwhile if I open
yahoo.com I could see the cookie file created by the yahoo.

So I uploaded my test file to another server and checked and
now I could see the cookie file.

I have learned that by default cookies are not created its
either created by javascript or server side scripting. In php,
session_start() and setcookie() will create a cookie

Now I removed these two function in my file and I had only html
code But still cookies are created I am very much confused.....

My Questions are.

1) when I run my script in server (A) cookie file is not created
where as when I run the same script in server (B) cookie file is
created why?????

2) Does a html page creates a cookie.

3) Can a value stored in a cookie be edited. (ie I am storing a
variable called access level in the cookie based upon the access level
i will give permission to the user, Since cookies are stored in the
client machine can the user open the cookie file and edit the access
level )
regards
moses

Sep 28 '06 #3
mo************@ gmail.com wrote:
Hi Ron

Thanks for ur reply.. I have some more questions please....

I tried with what u said but I could not find the cookie
file I am sure that the session handler is set to handle cookies
because I dont have any problem with accessing cookie variable and
session variable every thing works fine But I am curious about seeing
the cookie file what my program has created. Meanwhile if I open
yahoo.com I could see the cookie file created by the yahoo.

So I uploaded my test file to another server and checked and
now I could see the cookie file.

I have learned that by default cookies are not created its
either created by javascript or server side scripting. In php,
session_start() and setcookie() will create a cookie

Now I removed these two function in my file and I had only html
code But still cookies are created I am very much confused.....

My Questions are.

1) when I run my script in server (A) cookie file is not created
where as when I run the same script in server (B) cookie file is
created why?????
If this is a PHP script, perhaps session.auto_st art is set in the
php.ini file? Or maybe something else is setting the cookie automatically.
2) Does a html page creates a cookie.
No.
3) Can a value stored in a cookie be edited. (ie I am storing a
variable called access level in the cookie based upon the access level
i will give permission to the user, Since cookies are stored in the
client machine can the user open the cookie file and edit the access
level )
Yes, it's a file on the user's computer, after all. They may not get it
right - but it can be edited. Keep this information in the session, not
the cookie. Session files are kept on the server.
>
regards
moses

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Sep 28 '06 #4

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

Similar topics

2
3651
by: mark4asp | last post by:
Hello, I'm running my script locally and the cookie has been saved on the machine because the login page is by-passed (with the Redirect to "menu.asp" below. OK - but where is my cookie stored? Or at least give me clue. What will the cookie be called and what text will it contain if: iAuthorID = 1 iSecurityLvl = 3
5
1971
by: Yossi | last post by:
I want to set the asp session id path property. how can I do that? I mean, asp session id is stored in a cookie and like any other cookie it should have properties (or attributes), how can I control it? Yossi.
6
2111
by: Marcus | last post by:
Hello all, This is baffling me. I am starting a session and I know it is setting a cookie on my computer - I called getallheaders() and see that it is setting the cookie, and it is also accessible in $_COOKIE. I cleared all cookies in my Cookies folder before starting the session, and everytime I run the script it does not create a cookie in the folder. For testing I even set the browser to accept all cookies to make sure. ...
9
1956
by: RA | last post by:
Hi Please review and let me know if I am correct: 1) My understanding from reading http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/ diforwc-ch05.asp is that asp.net uses cookies to store the user session id, but if cookies are not enabled then it will send the session id as part of the url. Is this correct?
7
7669
by: DC Gringo | last post by:
I was under the impression that when I create session variables such as session("myVar1"), they get stored on the client in a cookie. When I look in my Temporary Internet Files directory for the cookie, I don't see anything. Am I looking in the right place? Here are my session state settings, they are default: <!-- SESSION STATE SETTINGS By default ASP.NET uses cookies to identify which requests belong to a particular session.
3
4913
by: damezumari | last post by:
To find out were session variables are stored I included this instruction in my program: echo ini_get("session.save_path"); The reply was /home/7604/data/tmp which is a folder on my server. I look at /home/7604/data/tmp and it is full of session files for today. Even so, if I have cookies blocked for my site http://easyquestion.net
2
1743
by: Damodhar | last post by:
HI friends, # any one say where the cookie files are stored and whats the path and whats the extension for the cookie files in php,this is client side variable.can u say the path for cookie # please any one know about the Cross domain cookie hoe to set the cookie for one are more domain's. can u say the syntax for the cross domain cookie
3
4991
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" cookieless="AutoDetect" domain="" timeout="10" protection="All" /> </authentication>
7
10201
by: cmrchs | last post by:
Hi, In Windows Vista: where does asp.net write its cookies? I use HttpCookie objCookie = new HttpCookie("nameCookie"); in Win2000 (and later) they used to be in C:\Documents and Settings\Administrator\Cookies but not anymore
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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
4150
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...
1
2726
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
1601
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.