How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID

Mobile
feeds
Welcome Login | Register

How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » PHP Forums
        » » How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID
How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID
Post Description: how to get php session id code sample to show obtain display phpsessid PHP
Post Tags:
This Post Has Been Viewed 3972 Times Since Wed Nov 29, 2006 11:53 am Author webmaster with 8 replies
How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID
Advertise On This Page




A good admin always knows what's going on in his/her site. Once way to add security and flexability dynamically in PHP is with each visitor's unique PHP Session Id.

The only requirement for this to work on your web pages is that you have PHP in your hosting. IF you don't have php, you can signup with www.webune.com for a php plan. if you have php, continue on...

The function to show a user's phpsession id is : $PHPSESSID

I wrote this short script to show you how it works:

steps: copy and paste this code into your editor or a text editor(like notepad):

<?php
session_start();
?>
</HEAD>
<style type="text/css">
<!--
.style2 {color: #0066FF}
.style3 {
color: #009933;
font-weight: bold;
}
.style5 {color: #0066FF; font-weight: bold; }
-->
</style>
<BODY>
<strong>Displaying PHP SessionID by Tutorial Guide by Wallpaperama.com
</strong>
<h1 align="center" class="style2">Your PHPSESSID is: <?php echo session_id(); ?></h1>
<span class="style5">NOTE</span>: If you don't see a session id in tbe blue header above, hit <span class="style3">REFRESH</span> on your browser <br />
<br />
<div align="center">Turotial by <a href="http://www.wallpaperama.com">Wallpaperama.com</a></div>
<hr size="2" noshade>
<p>This Script was developed by <a href="http://www.wallpaperama.com">Wallpaperama.com</a> - Support us by telling your friends about wallpaperama and help contribut to the open source by adding your knowledge of PHP, Linux, Mysql and more to others, just like this script.</p>
<p>Thank You</p>
<p>Wallpaperama Team</p>
<p><a href="http://www.wallpaperama.com/forums/how-to-get-php-session-id-code-sample-to-show-obtain-display-phpsessid-t518.html">&lt;&lt; Go Back</a> </p>
<p align="center">PHP Hosting by <a href="http://www.webune.com">Webune.com</a> </p>
<p>
</BODY>
</HTML>


[ This post sponsered by www.webune.com ]
webune


Save this file as wallpaperama-sessionid.php and uploaded to your Apache/ PHP server and open it with your browser (example: yourdomain.com/wallpaperama-sessionid.php), then it will display your own php sessionid as a demostration.

Thanks to our friends at www.webune.com, they have provide PHP hosting to show you a demo of how this script works:

CLICK HERE TO SEE DEMO


I hope this helps. If you are starting with PHP, you're going to like PHP, it has so many great features impossible to list here.

Thanks
Wallpaperama Team





Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID

Comments and replies About How To Get PHP Session Id Code Sample To Show Obtain display PHPSESSID
:: 1 :: Reply #51666 Reply By Anshul On Sat Apr 26, 2008 2:36 am
Anshul:
how to get email address from dating site
:: 2 :: Reply #52098 Reply By melv On Tue Apr 29, 2008 3:20 pm
melv:
i followed the instructions and no phpsessionid is shown.

also the demo link doesnt work, its a dead url.

:(
:: 3 :: Reply #66370 Reply By chathurika On Thu Aug 14, 2008 2:14 am
chathurika:
hsjgkhrgyujiwruyidjhkcjhkgjhlg,nb, .m,zl;fifodifjkgjkjkgjkgh
hjgsjg
:: 4 :: Reply #75792 Reply By sebastian On Thu Oct 16, 2008 12:15 pm
sebastian:
thank you this was very helpful.

im newbie when it comes to php and you helped me
:: 5 :: Reply #89119 Reply By xyz On Tue Jan 06, 2009 11:50 pm
xyz:
tutyut ryrdy
:: 6 :: Reply #124867 Reply By testing On Thu Dec 31, 2009 1:08 am
testing:
testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing
:: 7 :: Reply #124868 Reply By testing On Thu Dec 31, 2009 1:09 am
testing:
lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. at vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet. lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. at vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet. lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. at vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet.

duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu
:: 8 :: Reply #124869 Reply By testing On Thu Dec 31, 2009 1:10 am
testing:
bogus post.........u r spaming the web...