CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Session Variables

Print topic Send  topic

Author Message
Gabriel
Posted: 09/20/2004, 8:06 AM

How can I pass session variables to my custom asp page?
I have a hand writen asp page, it have to receive some variables from a page develop with CCS, process those variables, and send it to another page (final) develop with CCS, but the Login page is displayed instead of the "final" page.

Why CCS lost or erase user session?

My CCS pages are in the CReport folder, and the handwritten page is on my root directory.

Using IIS, ASP
peterr


Posts: 5971
Posted: 09/20/2004, 12:25 PM

There is nothing to pass. Session variables are always present on the server until they expire.
CCS cannot lose or erase session variables.

A login page can be shown whether you have session variables or not. I recommend that you research the problem, and do not assume that session variables are lost.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Tuong Do
Posted: 09/21/2004, 4:36 PM

Check the security of the final page.

"Gabriel" <Gabriel@forum.codecharge> wrote in message
news:6414ef1f1ab7b6@news.codecharge.com...
> How can I pass session variables to my custom asp page?
> I have a hand writen asp page, it have to receive some variables from a
> page
> develop with CCS, process those variables, and send it to another page
> (final)
> develop with CCS, but the Login page is displayed instead of the "final"
> page.
>
> Why CCS lost or erase user session?
>
> My CCS pages are in the CReport folder, and the handwritten page is on my
> root
> directory.
>
> Using IIS, ASP
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Gabriel
Posted: 09/22/2004, 1:44 PM

This is what happends....
My handwritten .asp page call a .dll that runs using the server administrator account, process the url it received from the first page, and sends it to the final page. It seems that because the .dll is calling the final page as the administrator (local admin user) the security ask him to login again. How can I include my login info in my handwritten .asp so it sends it to the third page automatically?

I've tried this (generate.asp) I add this lines to my handwritten page, passing the login info in the url:

urlToConvert=Request.ServerVariables("HTTP_REFERER")
urlToConvert2="sess.asp?UserLogin=admin&UserID=1&GroupID=1&.url=" & urlToConvert
rv=DC.SubmitUrl(tempUrl &".url","",urlToConvert)

and add an intermediate page (sess.asp) with only this lines:
<%
Session("UserID") = Request("UserID")
Session("UserLogin") = Request("UserLogin")
Session("GroupID") = Request("GroupID")
Response.Write Request(".url")

%>
desperate I try this approuch:
<%
Session("UserID") = 1
Session("UserLogin") = "admin"
Session("GroupID") = 1
Response.Write Request(".url")

%>

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.