Reply to Re: How can I get session variable names

Your name:

Reply:


Posted by Jerry Stuckle on 05/06/07 21:25

gupta.divyendu@gmail.com wrote:
> Hello Everybody
>
> I have a big problem. Please guide me.
>
> Is there any way through which I can get what session variables are
> created in the session.
>
> Suppose there are two pages. Page A and page B
>
> Page A has a link for page B
>
> When a person clicks link of Page B on Page A, he should get the list
> of all session variables and there values.
>
> Is this possible?
>
> Also is it necessary that Page A should also be in php. Will it work
> if it is java.
>
> Divyendu
>


From php:

<?php session_start(); ?>
....

<html>

<pre>
<?print_r($_SESSION);?>
</pre>

Of course you can neaten it up by enumerating your $_SESSION array, i.e.
with foreach().

To do it in Java, try a java newsgroup.

And if you're talking about sharing session values in PHP and Java, I
don't think you can do it with the default handlers. But I haven't
tried, either.



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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация