Jump to content

[SOLVED] Echo Session data


acctman

Recommended Posts

can anyone tell me why this is not working? what's suppose to happen is the session ID is added to the jpg filename.... and then in another script is should print out the ../temp/SESSION_ID.jpg

 

<?php
session_start();

$uploadreg = ('../temp/' . session_id() . '.jpg');
$_SESSION['reg_img'] = $uploadreg;

?>

on another page

 

<?php 

echo $_SESSION['reg_img'];

?>

Link to comment
https://forums.phpfreaks.com/topic/121480-solved-echo-session-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.