dedlfix: Session / Cookie problem / header => php

Beitrag lesen

echo $begrüßung;

<?php
    echo "<a href="index.php?".session_name()."=".session_id()."">test</a>\n";
    setcookie(session_name(), session_id(), time()+3600);

Why do you want to reinvent the wheel? You can use

<?php  
session_set_cookie_params(3600);  
session_start();  
  
echo '<a href="index.php?', SID, "\">test</a>\n";

The constant SID is predefined as session_name=session_id. It only exists if the browser didn't send a cookie.

echo "$verabschiedung $name";