Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old August 16th, 2007, 10:21 AM
Registered User
 
Join Date: Aug 2007
Location: city, state, India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to explore_asp
Default Asp/ PHP

Hi,

   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.
  #2 (permalink)  
Old August 16th, 2007, 11:51 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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

pageB.asp?session=<somevalue>

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
  #3 (permalink)  
Old September 15th, 2007, 09:47 AM
Authorized User
 
Join Date: Jun 2003
Location: Richmond, VA, USA.
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default

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.

Earl
www.jhdesigninc.com
  #4 (permalink)  
Old February 22nd, 2013, 07:25 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hai..i am a new member.. I just want to ask what is the best to use?? Asp or php ???
  #5 (permalink)  
Old February 23rd, 2013, 04:16 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
Matt


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.