RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Problems / Calendar sessions
Posted:  28 Mar 2017 18:08
Hello,

We have our intranet that has several calendars and from the home page there is a drop down with links that let our users go to the specific calendars. We did the individual database install for all the calendars. Our problem is seems that no matter what once you choose one calendar to go to and then try to go back to select a different calendar it keeps saying that it can't find the 1st calendar they visited. I've disabled cookies and messed around with session state in our IIS 8 and nothing changes.

Anyone have a clue what this might be?
Posted:  28 Mar 2017 21:46   Last Edited By: Roel B.
Hi there,
From your post the problem is not quite clear to me.
You have a home page with a drop-down menu with links to several calendars.
If you select a calendar from the menu it will open the selected calendar.
Then if you go back to the the drop-down menu (I assume via the browsers "Back" button?) and select an other calendar, HERE I'M LOST . . .
Could you please give me more details.
And also let us know what calendar version (number and MySQL or SQLite) you are using.

Note: I get the feeling that you have installed the individual calendar several times. It's much easier to install the calendar just once and create several calendar databases?
Then in your drop-down menu you can link to the different calendars (re: calendar databases) as follows:
The drop-down select could be something like:

Code:


<select name="selected_cal">
  <option value="cal1">Calendar 1</option>
  <option value="cal2">Calendar 2</option>
  <option value="cal3">Calendar 3</option>
</select>

and after selecting and submitting the form, the following link can be used to open the selected calendar:
link_to_calendar?cal=selected_cal

Roel
Posted:  28 Mar 2017 22:46
Hi,

The LuxCal Version is 4.5.2 and the MySQL Versions is 5.1

The drop down are links to the specific directory where the calendars reside.
Yes when they select a calendar and then hit the browsers back button and choose a different calendar it throws up text at the top that will state "Calendar 'maincal' not found."

The 'maincal' part of the error will change its name to match the calendar they first opened.

Also we did install the individual calendar several times as per the instructions. Because we wanted separate databases for our calendars.

Did I install them wrong?

Thanks,
Posted:  28 Mar 2017 23:13   Last Edited By: Roel B.
Hi there
My (preferred) instructions are to install the calendar just once (for instance in directory "calendar") and then on the installation page, under Calendars,  define the calendars you need (pairs of: name = title). So for instance:
cal1 = My first calendar
cal2 = My second calendar
cal3 = My third calendar

etc.
Of course with your own calendar titles.

Thereafter in your drop-down menu the links should be:
calendar/?cal=cal1
calendar/?cal=cal2
calendar/?cal=cal3

etc.

Is this the way you did it?
Roel
Posted:  28 Mar 2017 23:24   Last Edited By: vvillanueva
No we had a folder for each calendar.

Also correction on our intranet site we have a list item in html that uses a class of "arrow buttonbg" that make it like a drop down menu. Then it contain hyperlinks that direct the users to the website/calendar. The code shows what we have on our intranet site for our users to navigate and click on. So for each of those paths we have a directory that we installed the luxcal each time.

Code:


<li><div class="arrow buttonbg" style="width: 147px;"><a>Calendars</a></div>
    <ul>
    <li><a href="http://site/maincal/" title="">General Calendar</a></li>
    <li><a href="http://site/realcal/" title="">GC Mortgage Calendar</a></li>
    <li><a href="http://site/pburgcal/" title="">Phillipsburg Calendar</a></li>
    <li><a href="http://site/quintcal/" title="">Quinter Calendar</a></li>
    <li><a href="http://site/hayscal/" title="">Hays Calendar</a></li>
    <li><a href="http://site/sacal/" title="">GC Special Account Calendar</a></li>
    <li><a href="http://site/haymortcal/" title="">Hays Mortgage Calendar</a></li>
    </ul></li>
Posted:  28 Mar 2017 23:55
Well I was able to resolve this. Apparently the PHP session_name being the same was my issue. So once I set unique session_names under the each calendar in their folder under the index.php and css.php then it started to work like intended.

Thanks for all your help though.
Posted:  29 Mar 2017 09:46
Hello,

For the benefit of us who wouldn't know how to set unique session_names under the each calendar in their folder under the index.php and css.php, how did you do that?

Regards,
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  30 Mar 2017 19:29
Hello,

When I opened the index.php that was in the folder where I had the calendar installed to there is a line of code that looks like this

Code:


//start session
session_name('PHPSESSID');
session_start();


and in the css.php under the css folder it had a similar line of code like this

Code:


//start session
session_name('PHPSESSID');
session_start();


So to fix my error I went ahead and changed the PHPSESSID to something else. I changed it to match what the calendars name was. You need to change it in both places because if you just change it in the index.php then it breaks the calendar styling. Did that for each calendar and it works like a charm now.

Hopefully this is understandable and I apologize if its not.
Posted:  31 Mar 2017 14:11
Hello,

Thank you for the explanation. It is quite clear how to do it.

Regards,
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html