Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 16th, 2007, 10:21 AM
Registered User
Join Date: Aug 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to explore_asp
Default Asp/ PHP


   I have an application that contains Asp and PHP Code ,I have a PHP
   session variable that contains some value , this value I want to
   assign to asp session variable.

   Is this Possible .

   Can anyone help me out.

   Thanks In Advanced.
Old August 16th, 2007, 11:51 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Yes, but its somewhat of a hack.

If pageA.php has a session variable that pageB.asp needs you need to append the session variable of pageA.php to the querystring so that pageB.asp can access it. So if the php page redirected to the asp page you would have to do



================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
Old September 15th, 2007, 09:47 AM
Authorized User
Join Date: Jun 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb

Write the PHP variable into JavaScript and set a cookie then you can collect the javascript cookie using ASP. You may be able to use asp to take the cookie straight from PHP Im not sure but I am sure that you can take a cookie set by javascript straight into ASP.

Old February 22nd, 2013, 07:25 AM
Registered User
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

hai..i am a new member.. I just want to ask what is the best to use?? Asp or php ???
Old February 23rd, 2013, 04:16 AM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

its very odd you would re-activate such an old post...... You should learn ASP.net classic ASP is no longer supported by MS and is considered depreciated.
Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp.net v php Ducca571 ASP.NET 2.0 Professional 3 October 23rd, 2006 11:07 AM
ASP.NET vs. PHP Aaron Edwards ASP.NET 2.0 Basics 0 May 6th, 2006 12:51 PM
ASP.NET and PHP Prabhakar_dt VB Components 0 September 9th, 2005 04:44 AM
ASP to php kobalt7 Beginning PHP 1 June 14th, 2005 03:30 PM
php to asp simflex Classic ASP Professional 2 June 10th, 2004 11:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.