close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Session not always being picked up

Thread began 8/20/2014 2:53 pm by iainmacdonald331081 | Last modified 8/21/2014 8:37 am by Jason Byrnes | 1864 views | 6 replies |

iainmacdonald331081

Session not always being picked up

I have a page that stores a value from a recordset in a session to help send people back to the page they were on after they log in.

Details below....

Sign in to reply to this post

iainmacdonald331081

Details below...

Sign in to reply to this post

Jason ByrnesWebAssist

your rs_Lodge recordset is using INNER JOIN, this means it will only return a result if there is a match in all tables, try using LEFT OUTER JOIN instead.

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - I tried that with no luck.

I realised I didn't need the country in that recordset, so have taken out the join altogether, still with no luck.

Revised copy attached.

Sign in to reply to this post

Jason ByrnesWebAssist

i added an if statement to set the session only if the RS is not empty:
<?php
session_start();
if($row_rs_Lodge['GSG_URL'] != "") {
$_SESSION["Lodge_GSG_URL"] = "".$row_rs_Lodge['GSG_URL']."" ;
session_commit();
}
?>

that seams to have fixed it.

Sign in to reply to this post

iainmacdonald331081

Thank you Jason - not sure why, but with that the log in broke.

But I tried it without the commit line, and it fixed that.

So don't know what happened there, but all seems OK now.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...