# session in image

**URL:** <https://www.phphelp.com/t/session-in-image/10147>\
**Category:** Beginners - Learning PHP\
**Created:** [July 25, 2007, 6:50am UTC](https://www.phphelp.com/t/session-in-image/10147 "2007-07-25T06:50:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remo](https://www.phphelp.com/letter_avatar_proxy/v4/letter/r/bb73d2/32.png) [@remo](https://www.phphelp.com/u/remo)\
**Post date:** [July 25, 2007, 6:50am UTC](https://www.phphelp.com/t/session-in-image/10147/1 "2007-07-25T06:50:35Z")

</div>

Hi,  
I have a small doubt in creating and catching the values of session.  
I created a capture image using session value.

`$cc = $_SESSION['count'];
ImageString($image, 10, 30, 10, "$cc", $black);
`  
This image creation is done in a seperate file namely capture.php.  
I call this image file in another file check.php

`<img src='capture.php'>
$ss = $_SESSION['count'];
echo "$ss";`

My doubt is $ss prints the previous value printed by the image on the screen,  
I just want to know why it does not prints the same value(value printed on the image).
