473,236 Members | 1,477 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,236 software developers and data experts.

Session file pretty print

Does anybody know of a tool/script which would format php
session files to a more readable form ??

This would be for debugging, now if you have lots of
stuff in a session, it's a pain to try to find anything
from the file.
Sep 21 '05 #1
4 3251
zurg wrote:
Does anybody know of a tool/script which would format php
session files to a more readable form ??

This would be for debugging, now if you have lots of
stuff in a session, it's a pain to try to find anything
from the file.


Hi,

SOmething like this could help:
1) Open the file
2) unserialize it into some variable ($mySes)
3)
<pre>
<? var_dump($mySes); ?>
</pre>

That gives a better formatted overview.
Regards,
Erwin Moller
Sep 21 '05 #2
Erwin Moller
<si******************************************@spam yourself.com> wrote in
news:43***********************@news.xs4all.nl:

Hi,

SOmething like this could help:
1) Open the file
2) unserialize it into some variable ($mySes)
3)
<pre>
<? var_dump($mySes); ?>
</pre>

That gives a better formatted overview.
Regards,
Erwin Moller


This is not so simple, session data is not quite the same as serialize
data (there is an extra field for variable name).

And if session contains class objects, they should be defined
before unserializing...

Sep 22 '05 #3
zurg wrote:
Does anybody know of a tool/script which would format php
session files to a more readable form ??

This would be for debugging, now if you have lots of
stuff in a session, it's a pain to try to find anything
from the file.


<news:no********@php.net> (
http://groups.google.com/group/php.n...9db3c79756e979 )

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Sep 23 '05 #4
R. Rajesh Jeba Anbiah wrote:
zurg wrote:
Does anybody know of a tool/script which would format php
session files to a more readable form ??
<snip>
<news:no********@php.net> (
http://groups.google.com/group/php.n...9db3c79756e979 )


Also, check the user notes at <http://in2.php.net/session_decode>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Sep 23 '05 #5

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

Similar topics

3
by: Pete | last post by:
I have a site which is using sessions to pass data from one page through to the next. The problem that I have is that there are only two places where the session could/should be destroyed. This...
3
by: Mladen Gogala | last post by:
How can I share session registered variables between different processes? Here is my problem: File 1: ----------------------------------------------------------------------- <?php...
7
by: Ottar | last post by:
I've made a program sorting incomming mail in public folder. The function runs every minute by using the form.timer event. In Access XP it runs for weeks, no problem. Access 2003 runs the same...
4
by: MrBiggles | last post by:
Here's the sitch: I read in a csv file with 60000 lines (20 fields per record), and store the data to a local array. The file is read in and stored just fine and pretty quick. Now, if I try to...
8
by: zdp | last post by:
Hello! I need to process some webpages of a forum which is powered by discuz!. When I login, there are some options about how long to keep the cookies: forever, month, week, et al. If I choose...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
3
by: Charles Abetz | last post by:
Hi all My problem is that I am creating a session file on the server when the user first visits my website, but when the user logs in i want to write to the file again with the timestamp and their...
8
by: Eddie | last post by:
I am having difficulty in setting variables in a session, and then accessing those variables throughout the web pages that they click on. After having them set a user name and password,...
10
by: sheldonlg | last post by:
Something weird is happening here. I inherited some code that looks like what is shown below. The problem is that when menu1.php is included, the session variables are not known in homepage.php. ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.