Jump to content

Session coding question


manton

Recommended Posts

Hello  :)

 

I have a problem with sessions. Please, check what is wrong with my code

 

page1 is a form

 

page2

PHP Code:

session_start();
$_SESSION['ses_kod'] = $_POST['txtkod'];

It works up to here, I get the data but when loading the page itself (a link that points to the page itself) data is lost.

 

Then I have a page 3

PHP Code:

<?php session_start();
?>

Here is the problem, I cannot retreive any data.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/49111-session-coding-question/
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.