Version of script: 2.3
Hosting company:
URL of phpinfo.php: http://support.assimil8.com/php_info.php
URL of session_test.php:
What terms did you try when SEARCHING for a solution: session, variable, redirect
Write your message below:
Hi
Brilliant software, will be using it as a helpdesk for some really important clients. I wanted to give it a more bespoke feel. I've changed the look somewhat, backgrounds, colours, logos etc. As a final part of this I've been trying to get the logo to change dynamically depending on which client we are looking at.
All pretty easy stuff with PHP. Using url tags and $_GET it's not a problem at all. Clearly that's a bit clunky, looks poor on the URL, needs to be implemented in many places and is open to abuse.
So I've been trying to set some &_SESSION variables. Much better. My idea was to set a redirect page for each client, set a session variable and then redirect. Then on the index page pick up the variable either in the header directly or in page itself. (for example http://support.assimil8.com/demo/redir.php and /index.php)
I've tried lots of different ways to get this working, to no avail.
For example,
Code: Select all
session_start();
$_SESSION['version'] = "demo";
/* Redirect browser using meta redirect*/
echo "<meta http-equiv='refresh' content='0;url=../index.php'>";
/* Make sure that code below does not get executed when we redirect. */
exit;
It seems there is some conflict within the session processing for HESK. I don't want to start messing about with that (I tried to rename session_name['HESK'] to the value of a url tag, but that killed the whole lot (of course). And I'm not entirely sure how the session functions work anyway (bit too complex to work out easily).
Could anyone help?