Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
daemon666 каза:Защо не иска да ми запази сесията???
<?php
session_start();
include "config.php";
$username = $_SESSION['username'];
?>
И отдолу в кода като напиша <?php echo $username ?> не ми изписва нищо... Някакви идеи защо става така?
<?php
session_start();
include "config.php";
$_SESSION['username'] = 'pavkatar';
$username = $_SESSION['username'];
echo $username;
?>
Ти май не мислиш???daemon666 каза:За какво ми е стойност на $_SESSION['username'] ?????
<?php
session_start();
include "config.php";
$username = $_SESSION['username'];
if(empty($username)){
echo "The variable is empty";
} else {
echo $username; }
?>
emagi каза:<?php
session_start();
include "config.php";
$username = $_SESSION['username'];
if(empty($username)){
echo "The variable is empty";
} else {
echo $username; }
?>