PHP; Pass Session Variable Through href

Is there any way to change the following line so that a session variable carries the data to the next page?

<a href="latest.php?recordID=<?php echo $row_rsttest['apcode']; ?>"><?php echo $row_rsttest['airport']; ?></a>

Need not to display the 'apcode' in the URL.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

well you can pass the string return by session_id in the url to regenerate session on the other page. But if you save something in session you don't have to pass SID through url, you can start session on the other page, and every $_SESSION will be available :)
Steve BinkCommented:
More to the point, you very much should *not* pass session-related information through the URL.  This is a known security issue and will compromise the integrity of your application.  Use session cookies (see for related configuration items) to pass the SID, and PHP's session handler will take care of variable availability.
You can automatically pass the session ID in all URLS by enabling session.use_trans_sid in your php configuration.

When this is enabled, all your URLS are automatically appended with &PHPSESSID=xxxxxx where xxxxxx is the current session ID.

Although passing the session ID in the URL is no prefered, sometimes it is the best solution. If your script is running in an iframe on a different domain PHP will not be able to use cookies in some browsers, so passing the session ID in the URL is the only way.

Bit more info here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve BinkCommented:
szewkam actually supplied the method (use PHP's session variables).  My post was for clarification about the dangers of putting the SID in the URL.  
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.