Good day to you!

Is somebody could explain and give examples to me what are the functions of session in the page and what are the purpose of it?

I'm waiting for your detailed help...

Thank you in advance...

Roland

Recommended Answers

All 2 Replies

Sessions are variables like cookies. You use them to store data from one page to the next.

Here is the php.net documentation intro on sessions:

'Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site.

A visitor accessing your web site is assigned a unique id, the so-called session id. This is either stored in a cookie on the user side or is propagated in the URL.'

Check out: http://us2.php.net/manual/en/ref.session.php
Towards the bottom of the page are examples.

Good day to you!

Is somebody could explain and give examples to me what are the functions of session in the page and what are the purpose of it?

I'm waiting for your detailed help...

Thank you in advance...

Roland

Thanks sfbell, thanks for your helpful information....

Sessions are variables like cookies. You use them to store data from one page to the next.

Here is the php.net documentation intro on sessions:

'Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site.

A visitor accessing your web site is assigned a unique id, the so-called session id. This is either stored in a cookie on the user side or is propagated in the URL.'

Check out: http://us2.php.net/manual/en/ref.session.php
Towards the bottom of the page are examples.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.