You are here: Re: How can I get session variable names « PHP Programming Language « IT news, forums, messages
Re: How can I get session variable names

Posted by Dikkie Dik on 05/06/07 20:35

> 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.

Yes, just show the contents of $_SESSION. With a foreach-loop can build
you nicely formatted results.

> Also is it necessary that Page A should also be in php. Will it work
> if it is java.


In short: page A should be in PHP.

This is not a really absolute statement, however. PHP knows a "session
handler" which can be configured. You could theoretically write a
session handler that can read the java session, but you will have to do
some research on how to do it...
If you go that way, it may even be easier to use plain file handling (or
whatever mechanism java is using) and read java's session file. I do not
know how java stores session values.

Best regards.

 

Navigation:

[Reply to this 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

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