close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Session variables

Thread began 3/23/2022 5:07 am by birdscreen398247 | Last modified 3/23/2022 10:52 am by Ray Borduin | 78 views | 1 replies |

birdscreen398247

Session variables

I have two session variables (birdername and birder_ID) that are set on page 1 (birdlists_search_onebirder.php).

However, when it goes to page 2 (BL_Life_PA_OneBirder.php), the value of birder_ID is fine, but the birdername shows the value from the previous selection, not the current selection.

In other words, when I first make a selection on page 1 and choose Andy Keister, the next page shows blank for birdername. When I go back to page 1 and choose Al Guarente, then page 2 shows the Andy Keister!

The birder_ID variable is correct in both instances, matching the name that I selected.

So page 2 will show the right ID, but the wrong name.

Can you figure out what is going on here?

birder_ID is set on line 7 and birdername is set on line 33.

Attached Files
BL_Life_PA_OneBirder.php
birdlists_search_onebirder.php
Sign in to reply to this post

Ray BorduinWebAssist

Since you have a @session_commit(); on line 13, you would have to re-start the session in order to save another session variable lower on the page. You can probably just remove that line.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...