PLEASE HELP SESSION VARIABLES
I have created a master details pages, containing information/details of various people i.e firstname,secondname, registration no, marks, grade, then I have created a login page that after login it direct the users to that master details page with information, what I want is, when a user log in(he/she will be directed to master details page), let the master details page display his/her information only,without showing other person information,.PLEASE ASSIST ANYONE THANK YOU
To add to bregent, these could help:
http://forums.adobe.com/thread/417437
http://cookbooks.adobe.com/post_Display_user_s_name_and_other_details_after_login-16672.ht ml
Similar Messages
-
Please Help Session variables disappear
Hi. I am having issues with the developer's version of CF MX
7. I recently set up the developer's version on a test server, and
moved over code from a properly working site using MX 6. I have an
application.cfm file set will the correct <cfapplication> tag
attributes, and the session management is set in the CF admin. When
working on MX 6 the session variables I set were working. Now using
MX 7 none of my sessions are holding. When I first login the
sessions exist, if I click any other page, the variables disappear.
Again, this does not happen on MX 6.
Please help!
Thanks,
jlgDouble-check your sessiontimemout
Try setting up a simple test application using something
similar to the example at
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000217.htm -
URGENT PLEASE HELP-Session State Provider for 8i.
We are looking for a SESSION STATE PROVIDER for .NET 2.0 for Oracle 8i. Please help to find a solution. The current installation on the Oracle website does not work for 8i.
Thanks a BILLION in advance.You'll need to install the ODP 11 beta...
-
Please Help: Session context sharing between wars in same app
I'm using iplanet iAS6.0 SP1.
I have to share a session among 6 wars inside my application.
I have tested individual wars and they work fine. Now during integration
i find that session is not being shared.
in my application descriptor i have included all the wars and I have
used the same context-root name for all war entries.
On of the wars is a login.war and it sets some user previlages info into
session which has to be shared among all wars.
I'm not able to get it working.
My settings in each war for session info go like this,
<session-info>
<impl>distributed</impl>
<dsync-type>dsync-distributed</dsync-type>
<timeout-type>last-access</timeout-type>
<secure>false</secure>
<domain></domain>
<path></path>
<scope></scope>
</session-info>
I'm stuck here. Documentation says on making session distributed and
setting dsync-type to distributed should work.
What else should be done in SP1.
Is it a must to move to SP2 to solve this. And even in SP2 is it
straight forward?
Please help
my application.xml looks like this............
<application>
<display-name>myapp</display-name>
<module>
<web>
<web-uri>mywar1.war</web-uri>
<context-root>app</context-root>
</web>
</module>
<module>
<web>
<web-uri>mywarN.war</web-uri>
<context-root>app</context-root>
</web>
</module>
<module>
<web>
<web-uri>login.war</web-uri>
<context-root>app</context-root>
</web>
</module>
<module>
<ejb>myjar1.jar</ejb>
</module>
</application>Thanks-- that wasn't exactly the solution, since the dates and times are correct and IP addresses on both machinges should have been handled by DHCP, but you solved my problem by reminding me that there is a TCP/IP extension, which I looked at and saw that TCP/IP was turned off. I turned it on, and now everything is as it was an hour ago. So thank you!
-
Please Help | Dyanamic variable based on another field
In the query below, I'm attempting to replace task codes with task descriptions by left joining to a multi-purpose control table.
In our corp, the description for the task code varies based on the value of change_program in each record, so rather than referencing the value of code_index.tabl statically as I do in the query below (201), I need a dyanamic variable to be defined for each record based on the value of work.change_program, which would represent the value for code_index.tabl.
For each record
if change_program =1 then v_tabl = 201
elseif change_program =2 then v_tabl = 202
elseif change_program =3 then v_tabl = 203
else v_tabl = 201
BTW, I'm really a noob, so I have no idea how to declare and use variables, but I'm sure it must be possible. Any assistance with the syntax would be GREATLY appreciated.
SELECT account,
change_program,
task_code_01,
task_code_02,
task1.longdesc,
task2.longdesc
FROM work
left join (SELECT id,
longdesc
FROM code_index
WHERE corp = mem
AND tabl = 201) task1
ON task1.id = work.task_code_01
left join (SELECT id,
longdesc
FROM code_index
WHERE corp = mem
AND tabl = 201) task2
ON task2.id = work.task_code_02
WHERE work.corp = memWelcome to the forum,
CASE WHEN change_program =1 THEN 201
WHEN change_program =2 THEN 202
WHEN change_program =3 THEN 203
ELSE 201
ENDis a valid construct in SELECT statement.
Check SELECT syntax in ORacle documentation.
vr
Sudhakar B. -
Javax.servlet.* Not Found Error - Please help
I am having a great deal deal of trouble trying to compile a program using javax.servlet and javax.servlet.hhtp.*. I have setup the JAVA_HOME and the CLASSPATH variables as per the Installation instructions. I appear to have hit a brick wall and I am absolutely desperate to get this working. I have installed the J2EE SDK as well as the Servletapi2.1. Please Help.
Variables:
CLASSPATH=c:\jdk1.3\lib\tools.jar;c:\j2sdkee1.3.1\lib\j2ee.jar;c:\jdk1.3\jre\bin;c:\jdk1.3\jre\lib;c:\mm.mysql-2.0.14\org;c:\jdk1.3\lib\servlet.jar;
JAVA_HOME=c:\jdk1.3;
J2EE_HOME=c:\j2sdkee1.3.1;
PATH=%PATH%;c:\jdk1.3\bin;c:\j2sdkee1.3.1\bin;
Error message from compiler:
L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:27: package javax.servlet does not exist
import javax.servlet.*;
^
L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:30: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:39: cannot resolve symbol
symbol : class HttpServlet
location: class PasswordServlet
public class PasswordServlet extends HttpServletI can only think of three suggestions.
One, use your mouse to "cut-n-paste" the value of CLASSPATH and verify that those files are exactly where you think they are, and are spelled right.
E.g.
CD C:\JDK1.3\LIB
DIR SERVLET.JAR
Two, if they're spelled right, run "jar tvf" on the files to make sure they aren't corrupted or something.
E.g.:
JAR TVF SERVLET.JAR
Three, since you're working in Windoze, try putting the value inside double quotes. E.g.:
SET CLASSPATH="c:\jdk1.3\lib\tools.jar;c:\j2sdkee1 ... etc ... "
If you haven't tried the above, give it a go, see what happens. -
I am having the same problem as user "Gabe the animator" in a post sent in 2007.
"my recordset that drives a dynamic table won't filter results based on a session variable. I know session variables are working because I have the session variable echo on the page (dragged-n-dropped my session variable from the Bindings panel to my page), and that works fine. So why can't I filter my recordset with the same session variable???"
here is the code:
<?php require_once('Connections/mockconn.php'); ?>
<?php
session_start();
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
if(!session_id()){
session_start();
$colname_info = "-1";
if (isset($_SESSION['email'])) {
$colname_info = $_SESSION['email'];
mysql_select_db($database_mockconn, $mockconn);
$query_info = sprintf("SELECT name, last_name, email, password FROM registration WHERE email = %s", GetSQLValueString($colname_info, "text"));
$info = mysql_query($query_info, $mockconn) or die(mysql_error());
$row_info = mysql_fetch_assoc($info);
$totalRows_info = mysql_num_rows($info);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>home</title>
</head>
<body>
<div id="info">hello <?php echo $row_info['']; ?></div>
<?php
if (isset($_SESSION['email'])) {
echo 'your email: '.' '. $_SESSION['email'] .' '.'good job';}
?>
</body>
</html>
PLEASE PLEASE HELP.... I have been at this for day's...
how do I get the record set to filter based on the value of the session variableSorry I forgot to mension the error I am getting?
( ! ) Notice: Undefined index: in C:\wamp\www\mock\home.php on line 59
Call Stack
Time
Memory
Function
Location
1
0.0093
389024
{main}( )
..\home.php:0
Why is this error coming up? -
Help with session variable please - CS5.5 PHP
Hi all,
I am needing a little assistance with using a session variable and hope that someone may point me in the right direction.
I have created a PHP page that uses the Dreamweaver 'User Authentication' feature, and the basics of this works fine, directing a user to the correct pages depending on whether they are or are not a valid user. I would like however to personalise the 'valid user' page with the persons Username as entered in the User Authentication table....a seemingly simple task using a session variable, but one that I just don't seem to be able to get working!
The code generated for the UA on page 1 is as follows:
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['txtfirst_name'])) {
$loginUsername=$_POST['txtfirst_name'];
$password=$_POST['txtsurname'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "member_update.php";
$MM_redirectLoginFailed = "login.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_panto, $panto);
$LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND surname=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $panto) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
header("Location: " . $MM_redirectLoginSuccess );
else {
header("Location: ". $MM_redirectLoginFailed );
?>
Firstly, the text highlighted in red above appears to be setting the session variable that I require. Is This correct?
If so, what is the code that I need to place in page 2 to use that session variable? or
Do I need to do something else on page 1 to properly assign the session variable?
Would really appreciate your expertise
MarkIt looks as though you've set the columns incorrectly in the User Authentication server behavior. This is the SQL query that checks the user's credentials:
$LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND surname=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
You're looking for firstname and surname, whereas you should be looking for the user's login name and password.
$_SESSION['MM_Username'] is a session variable that stores the user's login name. To use it in a subsequent page, all that's needed is for the page to begin with session_start(). You can then echo the value to display it.
If you want to display the person's real name, you need to create a recordset in the second page using $_SESSION['MM_Username'] to find the firstname and surname. Alternatively, you can edit the existing code like this (I've copied only part of it):
$LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $panto) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
$row = mysql_fetch_assoc($LoginRS);
$_SESSION['full_name'] = $row['firstname'] . ' ' . $row['surname'];
if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
You can then use $_SESSION['full_name'] in a subsequent page that begins with session_start(). -
Hi All,
I have created a user 'Bitest' and group 'Bi_Test_Group'. Assigned the user to the group and the group to BI consumer role.
I gave access to only procurement and spend catalog folder reports and Dashboards.
When I login to BI Presentation Services with above created user and open any procurement and spent catalog dashboard i am getting below error in every report.
Its BI Apps 7.9.6.3 installation.I gave read access to group to all procurement and spent subject area.
Error Codes: OAMP2OPY:OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 23006] The session variable, NQ_SESSION.OU_ORG, has no value definition.Please have your System Administrator look at the log for more details on this error. (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT Fact."PO Amount" FROM "Procurement and Spend - Purchase Orders"')}
SQL Issued: SELECT Fact."PO Amount" FROM "Procurement and Spend - Purchase Orders"
Please help me in resolving this issue and getting results on Dashboard.
Thanks in advance
Thanks,
SandeepCheck your query or connection pool settings etc
-
Need Help With Redirect That Uses Session Variable
I am new to dynamic sites, php, and developer toolbox, but I have been able to create a login site using the different form wizards fairly easily (in CS3 with Developers toolbox).
<br />
<br />I am trying to set a server behavior on a page that redirects the user to a new page if a session variable matches a recordset.
<br />
<br />I was using an extension (PHP Sessions - http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=681308 ) that worked great, but when I installed developers toolbox, it stopped working (get error message about runtime/MX environment).
<br />
<br />Ive been struggling for days and this is what Ive come up with so far:
<br />------------------------------------
<br />session_start();
<br />if (!isset($HTTP_SESSION_VARS[$_SESSION['kt_firstname']]) || $HTTP_SESSION_VARS[$_SESSION['kt_firstname']] = $row_Recordsetfname['firstname']) {
<br /> header ("Location: ../firstname/firstname1.php");
<br />}
<br />------------------------------------
<br />
<br />It redirects regardless of the match. Any ideas on what I can do to get this working? Here is all of the code (with block from above inserted) up until the doc type:
<br />------------------------------------
<br /><?php require_once('../Connections/project1.php'); ?>
<br /><?php<br />// Load the tNG classes<br />require_once('../includes/tng/tNG.inc.php');<br /><br />// Make unified connection variable<br />$conn_project1 = new KT_connection($project1, $database_project1);<br /><br />//Start Restrict Access To Page<br />$restrict = new tNG_RestrictAccess($conn_project1, "../");<br />//Grand Levels: Any<br />$restrict->Execute();<br />//End Restrict Access To Page<br /><br />if (!function_exists("GetSQLValueString")) {<br />function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") <br />{<br /> $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;<br /><br /> $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);<br /><br /> switch ($theType) {<br /> case "text":<br /> $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br /> break; <br /> case "long":<br /> case "int":<br /> $theValue = ($theValue != "") ? intval($theValue) : "NULL";<br /> break;<br /> case "double":<br /> $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";<br /> break;<br /> case "date":<br /> $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br /> break;<br /> case "defined":<br /> $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br /> break;<br /> }<br /> return $theValue;<br />}<br />}<br /><br />// FELIXONE - 2002 SB by Felice Di Stefano - www.felixone.it<br />session_start();<br />if (!isset($HTTP_SESSION_VARS[$_SESSION['kt_firstname']]) || $HTTP_SESSION_VARS[$_SESSION['kt_firstname']] = $row_Recordsetfname['firstname']) {<br /> header ("Location: ../firstname/firstname1.php");<br />}<br /><br />$colname_Recordsetfname = "-1";<br />if (isset($_SESSION['kt_user_name'])) {<br /> $colname_Recordsetfname = $_SESSION['kt_user_name'];<br />}<br />mysql_select_db($database_project1, $project1);<br />$query_Recordsetfname = sprintf("SELECT firstname FROM registration WHERE user_name = %s", GetSQLValueString($colname_Recordsetfname, "text"));<br />$Recordsetfname = mysql_query($query_Recordsetfname, $project1) or die(mysql_error());<br />$row_Recordsetfname = mysql_fetch_assoc($Recordsetfname);<br />$totalRows_Recordsetfname = mysql_num_rows($Recordsetfname);<br /><br />$colname_Recordset1 = "-1";<br />if (isset($_SESSION['kt_user_name'])) {<br /> $colname_Recordset1 = $_SESSION['kt_user_name'];<br />}<br />mysql_select_db($database_project1, $project1);<br />$query_Recordset1 = sprintf("SELECT `Date` FROM registration WHERE user_name = %s", GetSQLValueString($colname_Recordset1, "text"));<br />$Recordset1 = mysql_query($query_Recordset1, $project1) or die(mysql_error());<br />$row_Recordset1 = mysql_fetch_assoc($Recordset1);<br />$totalRows_Recordset1 = mysql_num_rows($Recordset1);<br />?>
<br />
<br />------------------------------I am new to adobe toolbox... I ve created a ligin page but not sure how to pass the session variable. I am trying to direct successful login to a page like... index.php?id=filter
<br />
<br />been struggling all day with this. Please help!!!
<br />
<br /><?php require_once('Connections/comm.php'); ?>
<br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_comm = new KT_connection($comm, $database_comm);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$formValidation->addField("kt_login_user", true, "text", "", "", "", "");<br />$formValidation->addField("kt_login_password", true, "text", "", "", "", "");<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />// Make a login transaction instance<br />$loginTransaction = new tNG_login($conn_comm);<br />$tNGs->addTransaction($loginTransaction);<br />// Register triggers<br />$loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1");<br />$loginTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}");<br />// Add columns<br />$loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user");<br />$loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password");<br />$loginTransaction->addColumn("kt_login_rememberme", "CHECKBOX_1_0_TYPE", "POST", "kt_login_rememberme", "0");<br />// End of login transaction instance<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rscustom = $tNGs->getRecordset("custom");<br />$row_rscustom = mysql_fetch_assoc($rscustom);<br />$totalRows_rscustom = mysql_num_rows($rscustom);<br /><br />?>
<br />
<br />
<br />
<br />
<br />
<br />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<br />
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<br />
<script src="includes/skins/style.js" type="text/javascript"></script>
<br /><?php echo $tNGs->displayValidationRules();?>
<br />
<br />
<br />
<br /><?php<br /> echo $tNGs->getLoginMsg();<br />?>
<br /><?php<br /> echo $tNGs->getErrorMsg();<br />?>
<br />
<form method="post" id="form1" class="KT_tngformerror" action="%3C?php%20echo%20KT_escapeAttribute(KT_getFullUri());%20?%3E">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<table cellpadding="2" cellspacing="0" class="KT_tngtable">
<tr>
<td class="KT_th">
<label for="kt_login_user">Username:</label>
</td>
<td>
<input type="text" name="kt_login_user" id="kt_login_user" value="<?php echo KT_escapeAttribute($row_rscustom['kt_login_user']); ?>" size="32" />
<br /> <?php echo $tNGs->displayFieldHint("kt_login_user");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_user"); ?></td>
</tr>
<tr>
<td class="KT_th">
<label for="kt_login_password">Password:</label>
</td>
<td>
<input type="password" name="kt_login_password" id="kt_login_password" value="" size="32" />
<br /> <?php echo $tNGs->displayFieldHint("kt_login_password");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_password"); ?></td>
</tr>
<tr>
<td class="KT_th">
<label for="kt_login_rememberme">Remember me:</label>
</td>
<td>
<input <?php if (!(strcmp(KT_escapeAttribute($row_rscustom['kt_login_rememberme']),"1"))) {echo "checked";} ?> type="checkbox" name="kt_login_rememberme" id="kt_login_rememberme" value="1" />
<br /> <?php echo $tNGs->displayFieldError("custom", "kt_login_rememberme"); ?></td>
</tr>
<tr class="KT_buttons">
<td colspan="2">
<input type="submit" name="kt_login1" id="kt_login1" value="Login" />
<br /></td>
</tr>
</table>
<br />
<a href="forgot_password.php">Forgot your password?</a>
<br /></form>
<br />
<p> </p>
<br />
<br /> -
Hi, all. I posted questions before when I was stuck, and you
all were very friendly and helpful. I am having difficulty
understanding how to create, POST() to, and then REQUEST()
information stored in session variables using Dreamweaver. I am
developing the pages using PHP, and have a MySQL database uploaded
and working. Displaying, editing, and adding to the database is
ongoing, as I type!
Adobe has thankfully started the session for me with the
<?php if(!isset($_SESSION)) { session_start(); } ... because I
have a log in/log out server behavior on the pages.
I need to add two pieces of information collected from the
page, one value of which is inputted by the user on a form, and the
other value is obtained from values from the part of the recordset
shown on the page. What I expect I need is something like a
2-dimensional array to store both sets as a pair, but while I
expect I can do this, I am really not sure. The documentation ends
before fully explaining this part.
An example of what I am trying to do is a product detail page
from an on-line store catalog, with an "add to cart" button. The
person has navigated to that page, shows the information for
productID=1497 with an input field for quantity, so a person can
order more than one of that product if they choose, and an "add to
cart" button which would write the productID and quantity values to
the session variable. Is there a simple and easy to use Dreamweaver
feature I am missing that can do this?
If I need to code this myself, are there good resources for
figuring this out? What I've found thus far is either too basic, or
too advanced. I've been using Dreamweaver's Insert>Date
Objects> menu to get everything done thus far.
Of course, once the session variables are created I will need
to $_REQUEST() the information on a later page and display it on
one of Dreamweaver's dynamic tables. I hope that once I understand
how to $_POST() the values to the session variable, $_REQUEST()ing
the information on another page will be apparent.
Also, please don't assume I know anything more than what I
wrote in my post. I may be an old school programmer, think punch
cards and FORTRAN, but I can get lost easily on things most people
nowadays think are pretty basic.I got it fixed. It took two weeks to figure out the solution,
but...
It all boils down to the fact that you can get away with
sloppy programming if your MySQL database is located on 'localhost'
that you can't get away with if it is located remotely.
Basically, you need to activate the database before you make
a mysql_query. My bad. Problem solved. And now that I know I need
to do this, problem never rediscovered.
~ Scott
oldcountrypeddler.com -
HELP NEEDED:: variable SESSION is undefine
Guys, help me out; PLEASE. I'm stuck on this for days and am
running out of options.
I have a CFC that checks some session variables for
validation (client login etc), and I have a RemoteObject call to
said CFC.
All my other CFCs that do not reference session variables
work fine; this one bunks right when my CFC checks the session
variables.
I tried webservices, no-go (hell, I couldn't even see the
faultString!!).
I played around with my CF8 server settings and tried
everything.
I tried Ben Forta's blogs (and posted a question there) but
didn't get much help,
HOW CAN I ACCESS A CFC THAT REFERENCES SESSION VARIABLES
WITHOUT CREATING A GET/SET METHOD TO GET/SET THESE SESSION
VARIABLES!!!! (Obvious security risk).Thank you for your reply John,
Sorry I wasn't clear in my description.
I do -in fact- have a CFC check my client's log-in and return
a true or false, however in subsequent site functionality, it is
the norm to see whether the session has expired or not. From Flex I
am using a RemoteObject call to a CFC; the CFC has the following if
statement:
<cfif IsDefined(SESSION.CLIENT.boolClientLoggedIn)>
<cfif SESSION.CLIENT.boolClientLoggedIn eq "true">
<cfthrow message="Attempting to call fncClientWebSignup
when client is logged in.">
</cfif>
</cfif>
The faultString I get in Flex is 'Variable SESSION is
undefined.'
Also, I did try to change my wrapper from html to cfm and
still no success. Not only that, but I've tried Webservices (which
failed miserably because I couldn't even get the details of the
SOAP fault!!!).
I built a test cfm page that tests my cfcs (instead of Flex
calling them, I had the cfm call the same cfcs) and Session
variables were defined and everything went well.
It so happens that when Flex calls the SAME cfcs, the SESSION
variable is undefined.
I hope this clears up my problem. -
Urgent help required...for replacing JSP session variables
I am trying to enhance the performance of a j2ee based webapp which use session variables to store the data...
Is there any alternative for session variables..The project is based on j2ee-Struts frame work..But the amount of code maintainance should be minimum ....so i can't create beanforms for all these data...
Is there any XML based methods available...??ok... thanks... i created a fla file and inthe action script
pasted the following code
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://flash.ispstream.com/ondemand/unikron/my_video_dj/");
var ns:NetStream = new NetStream(nc);
contentMain.myVideo.attachVideo(ns);
ns.setBufferTime(5);
ns.play("dvd_r");
nothing is working if i tried to load... can u help me out -
Formula Variables for Report Painter- Syntac error in formula, Please Help!
Dear Experts,
I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))12*
I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
I have tried so many different way but nothing seems to work. one of the ways i tried was:
In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
So Im trying to create a folowing formula:
IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
Thank you in advance
Regards
ErnestaThank you all for your help. The issue was that the variable was assigned to the different table as the library. After I changed it, it worked fine.
Regards
Ernesta -
Loading the final static variables at run time.. Please help
Hello, fellow developers & Gurus,
Please help me figure out the best way to do this:
I need to load all my constants at run time. These are the public static final instance variables. The variables values are in the DataBase. How do I go about loading them.Your original question was diffeent, but your further posts show what you really want to do:
1) all constants in 1 class
2) available readonly for other classes
3) updatable during runtime by changing in the database
Did I understand you right?
Then smiths' approach solves point 2):
Instead, make the variables available through a method
call - that way you avoid the whole final variable
versus read-only attributes problem.
//GLOBAL VARIABLES EXPOSED AS PUBLIC PROPERTIES
public final class GlobalProperties
public static int getTableSize();
public static int getRowSize();
Each "constant" should be a private static variable, and these methods simply return their values.
The variables are initialized in a static initializer by accessing the db. Ok.
You habe a table with one row containing as columns all the constants.
A method readConstants() does a "select constant1, constant2, ... from const_table" and sets all the variables.
The static initializer calls this method.
Right?
Ok, then you simply call readConstants() everytime you want to synchronize with the actual content of const_table.
Was it this?
Maybe you are looking for
-
NF-e parada no passo de Assinatura após queda do PI
Olá Pessoal, Na semana passada tivemos um problema com a máquina do PI e GRC (as duas aplicações estão na mesma instância) que ficou fora durante um periodo de 4 horas. Ao retornar, a maioria das Notas puderam ser reinicializadas pelo proprio monitor
-
Moving Photoshop Album 2.0 catalogue to Elements 13
All my photos are on Photoshop Album V2.0 on an old PC running windows XP. I've moved to Macs - OS X Mavericks and want to try and copy my Album catalogue over. I've downloaded Elements 13 free trial on my Mac and am happy with that. Adobe help says
-
Hi There I just purchased Nokia E-63 and Installed Skype from OVI store and Skype installed Successfully and when i start skype and login into it than skype automatically shutdown and my E-63 mobile restarted. Plz tell me the solution if any have. Th
-
Splitting up text at line breaks into separate text objects
creating a map with many text objects each containing one village name etc. or sth similar it would be nice if we could - type all names with enter/linebreaks - and then choose something like 'create separate text objects for each text line' I know I
-
Hi; From sqlplus, I can write the output of the sql query to csv file. What I want to do is, Suppose my excel file which consist of two seperate sheets. When I execute query1 it should write the output to sheet1. When I execute query2 it should write