WebSite X5Help Center

 
Kev G.
Kev G.
User

Setting a 'php session'  en

Autor: Kev G.
Visited 286, Followers 1, Udostępniony 0  

Hi all, I need to be able to start a PHP session before any HTML is executed as -

"<?php
// Start the session
session_start();
?>

<!DOCTYPE html>
<html>
<body>

<?php

.......

?>

</body>
</html>"

Is there a way to do this please.

Many Thanks.

Posted on the
2 ODPOWIEDZI
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca DENajlepszy Użytkownik miesiąca EN

In WebsiteX5 under...

3 Sitemap

... mark the page you want, click "Properties" at the top, then click the "Advanced" tab and paste it into...

Custom code:
Before the HTML tag

-----

Czytaj więcej
Posted on the from Daniel W.
Kev G.
Kev G.
User
Autor

Many many thanks Daniel, I hadn't spotted the dropdown box giving that option, doh.........

That makes all the difference.

Thanks again, Kev

Czytaj więcej
Posted on the from Kev G.