How to set a new session variable?
Hi all,
Can anybody say how to set a new session variable in istore?
Hi,
you can use either
pageContext.getAttribute(VAR, PageContext.REQUEST_SCOPE);
or
<%@page session="true" %>
session.putValue
session.getValue
Hope this will help.
Thanks
Gurjeet
Similar Messages
-
How to set up new enviroment variables permanently for all users?
Hi.
I downloadad Apache Tomcat, and need to set enviromental variables for all users.
I tryed setenv commad, but it is not found.
for example # JAVA_HOME="/opt/jre1.6.0" Solaris remembers this variable only for one session and I need for all users permanently.
Thanks.Thank you.
This file contains a script. Is there difference in putting that line in beginning or end of the file?
#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */
# The profile that all logins get before using their own .profile.
trap "" 2 3
export LOGNAME PATH
if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi
# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.
case "$0" in
-sh | -ksh | -jsh | -bash)
if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
/bin/mail -E
case $? in
0)
echo "You have new mail."
2)
echo "You have mail."
esac
fi
esac
umask 022
trap 2 3
# Intel Server Control - The following lines
# let the LRA daemon access the X server
if [ -f /usr/bin/X11/xhost -a -f //isc/lra ]
then
ttyname=`tty`
ttyname=`basename $ttyname`
ttykind=`tty | egrep "console|vt"`
whereami=`finger -s | grep $ttyname | cut -c61-`
if [ "$whereami" = "" -a "$ttykind" = "" ]
then
CURDIS=$DISPLAY
DISPLAY=unix:0.0
export DISPLAY
/usr/X/bin/xhost +unknown 2>/dev/null 1>/dev/null
DISPLAY=$CURDIS
fi
fi -
Using HttpHeader to set value for session variables
Hi,
We want to set values for 2 session variables (USER and ROLEID) using HttpHeader in obiee 11g. Has anyone tried this? How can we achieve this?
I found the below note on the forum for setting value for the USER session variable. how can we set the ROLEID session variable also? is it possible to set values for 2 variables?
for setting the USER session variable,
You should add this in $BI_HOME/bifoundation/web/display/authenticationschemas.xml:
<SchemaKeyVariable source="httpHeader" nameInSource="Proxy-Remote-User" forceValue="SSO"/>
<AuthenticationSchema name="SSO" displayName="Single Sign On" userID="IMPERSONATE" proxyUserID="NQ_SESSION.RUNAS" options="noLogoffUI noLogonUI">
<RequestVariable source="httpHeader" type="auth" nameInSource="Proxy-Remote-User" biVariableName="IMPERSONATE" options="required"/>
</AuthenticationSchema>
Please suggest.
Thanks.I think maybe your SnmpValue type or value is not corrent.
1.3.6.1.4.1.7064.201.1.200.100.0 is Enum control type
when I use
SnmpValue val = new SnmpString("0");
It doesn't work, but when I use
SnmpValue val = new SnmpInt(0);
It works. I think the JDMK should give some warning message when the type is not correct. :)
The code is following:
final SnmpVarBindList setList = new SnmpVarBindList(" set varbind list ");
SnmpOid oid = new SnmpOid("1.3.6.1.4.1.7064.201.1.200.100.0");
SnmpValue val = new SnmpInt(0);
SnmpVarBind valueBind = new SnmpVarBind(oid, val);
setList.addVarBind( valueBind );
SnmpRequest setRequest = session.snmpSetRequest(null, setList); -
Code to set and destroy session variables in Java Server Pages(JSP)
code to set and destroy session variables in Java Server Pages(JSP)
we have use following statement to set session variable
session.setAttribute("userClient",id);
we have use following statement to destroy session variable
session.setAttribute("userClient","");
and
the session.invalidate() is not working
Plz. solve this probemcode to set and destroy session variables in Java
Server Pages(JSP)
we have use following statement to set session
variable
session.setAttribute("userClient",id);
we have use following statement to destroy session
variable
session.setAttribute("userClient","");Perhaps if you tried using
session.setAttribute("userClient", null);
or
session.removeAttribute("userClient");
and
the session.invalidate() is not workingNot working how?
>
Plz. solve this probem -
How to generate a random session variable in php
i want to generate a random session variable and insert the variable in a mysql record to use later to validate an account set up.
person fills out form to create account and submits; inserts form information in mysql record.
i want the random variable to be inserted from a hidden field and the page sends an email with a link to click on to compare the variable to validate the user.
Not sure how to generate a random session variable and get that to the hidden field value to be inserted with the other form information.
thanks for your help,
Jim BalthropTo insert the key I would personally do something like...
$key = md5($username . $password . $salt);
Insert that into your MySQL database, then send them a email with it, my next code shows how to activate it.
This is to activate the account.
<?php
$key;
$errors = array();
if(isset($_GET['key']){
$key = $_GET['key'];
$sql = 'SELECT * FROM users WHERE key = \'' . $key '\' LIMIT 1';
$result = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($result)){
$sql2 = 'UPDATE users SET active = 1 WHERE key = \'' . $key '\' LIMIT 1';
$result2 = mysql_query($sql2) or die(mysql_error());
if($result2){
//successfully activated account
else{
//Something Went Wrong!
else{
$errors[] = 'Invaild Key, Please try again!';
else{
$errors[] = 'Invaild Key, Please try again!';
?> -
Hi,
How to setup a session variable of User id in PHP in
Dreamweaver Style. Is it possible to assign the session variable
value equal to user id from the recordset......if yes i need the
procedure. Thanks in advance.prashi123 wrote:
> How to setup a session variable of User id in PHP in
Dreamweaver Style. Is it
> possible to assign the session variable value equal to
user id from the
> recordset......if yes i need the procedure.
There is no "Dreamweaver style" for setting up a session
variable. You
do it in exactly the same way as for any PHP page. Put this
at the
beginning of the page:
session_start();
Retrieve the value that you want from the recordset and
assign it to a
session variable like this:
$_SESSION['user_id'] = $row_recordsetName['user_id'];
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
How to create a new session in JSP file
Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.
I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
// this will create a new session object if one doesn't already exist.
HttpServletRequest.getSession( true );
Hope this helps -
How to set a new value for formula field in crystal reports xi?
<p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text = "'Subreport Formula'" or</p><p>crxSubreport.FormulaFields.Item("description").Text = "'Subreport Formula'"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>
Hi,
This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
Regards,
<p>Blair Wheadon</p>
<p>Product Manager, Crystal Reports</p> -
How to set a new SCSI number for a second drive?
How to set a new SCSI number for a second drive?
WalterWalter,
This web site gives a good diagram:
http://www.hitachigst.com/hdd/support/dpes/dpesjum.htm
On a Quantum hard disk drive - they were the original equipment manufacturer (OEM) hard drive provider for Apple, you will see three or four pairs of pins on the green circuit board. They are labled:
AO . .
A1 . .
A2 . .
If no pins are connected, you have SCSI ID Zero This was the standard setting from the factory.
If you short out the pins beside AO .__. , you have designated SCSI ID One.
If you short out the pins beside A1 .__. , you have designated SCSI ID Two.
If you short out the pins beside A2 .__. , you have designated SCSI ID Four.
These values can be added together to get other SCSI IDs. If you have a jumper beside AO AND A1, that will add up to SCSI ID Three.
Some of the quantum drives used tiny black plastic jumpers with tiny metal contacts. I have yet to find a store that sells the tiny ones. I get my larger jumpers from old PC motherboards that are being thrown away. A small piece of aluminum foil will work as a jumper in a pinch. Just make sure it soed not fall off and short something else out!
Jim
PS
CD-ROM drives are set at the factory as ID 3. Internal drives are set at ID 0. I set my external SCSI drive at SCSI 1 so it does not conflict with the internal drive. Internal Zip drives are set at ID 5 and external Zip drives let you choose between 5 and 6. I set my burners at ID 4. Come up with a master plan for your devices like scanners and burners. Apple System Profiler will give you info on the device ID. If the computer fails to boot, turn off all but one SCSI device and make sure of its ID. Then check each subsequent device by powering up only one device at a time while booting from a CD at ID #3. -
HT3728 after soft resetting how to set a new password to my airport express
after soft resetting the airport exppress how to set a new password to my airport express
Hello, MevanK.
Thank you for the question. You may find this article helpful in changing or creating a password for your AirPort Express.
AirPort Utility 6.x: Password-protect your wireless network
http://support.apple.com/kb/PH5119
Cheers,
Jason H. -
How to create a new session by ABAP?
Good afternoon everyone:
This is my first question in the forum, can anybody tell me how to create a new session to display report output in a ALV program? Which function or method can used? I'm freshman.
Thx.
Edited by: Joshua Lee on Nov 21, 2008 10:04 AMHi Joshua,
Welcome To SDN.
I am not clear about your queestion.
if u r doing an ALV report if u give selection screen inputs if press execute buttom or F8 u wil get the report.
if u want the out put in the next screen. you can develop the screen in the module pool
Regards
Rasheed
Edited by: Rasheed salman on Nov 21, 2008 10:25 AM -
If user disable cookie how to set and use session with URL Rewritting
if user disable cookie how to set and use session with URL Rewritting by append session ID in url
If cookies are disabled, then app server will automatically try to use URL rewriting for session control. Programmer's responsibility is to encode any links or redirects using
response.encodeURL("/yourPage.jsp")
and
response.encodeRedirectURL("/yourPage.jsp")
See API for details
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String)) -
How to set all new vm with VLAN ID as a default settings and alose set the avaiablity high .
How to set all new vm with VLAN ID as a default settings and alose set the avaiablity high .
Hi Ramy,
As a work around , you can create a VM without installing OS and configure the Vlan of VNic , then export it .
The new VM will be with Vlan ID when you import the "export file".(note : you need to select "copy the virtual machine " in the tab "choose import type" during importing ) .
Hope this helps
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
I signed up yesterday with synch. I don't know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1
I set it up on my "upstairs computer" and then came to my "downstairs computer" to synch and I can not get into the account because of the above password problem. I write down my passwords. I must have mistyped it or mis written.
I want to change my passwordThe new Sync version uses the Firefox account and stores the login data (username/email and password) under the https://accounts.firefox.com site heading in the Password Manager and use the signedInUser.json file in the profile folder to store the credentials once connected to the account to avoid having to enter the master password on each start.
-
How to set up new icloud account
how to set up new Icloud account on Mac Mini and connect to all my apple devices
Mike..
Instructions here > Apple - iCloud - Learn how to set up iCloud on all your devices.
Maybe you are looking for
-
Hi all. Can someone tell me how connect my MacBook directly to my DSL cable modem bypassing my wireless connection? thanks in advance. (the Maverick upload that was pushed out last month will not load for me -- keeps starting and stopping. just r
-
Can a SQL view see data from an ODBC connection?
Hi. I currently have an application that pulls data from a custom SQL view in my SQL database. This custom application can not be changed, so it expects to see the data exactly as presented by my custom SQL view. This works fine when the data resides
-
Progblems Running a C program with JNI on Linux
Hi We are having a problem running a C program which uses JNI to start a virtual machine. We can compile it up ok and it finds all the correct libraries and everything is fine as far as we are aware but when we try to run the program the error we get
-
Second display show non-Keynote application windows?
I use Citrix' GoToWebinar and would like to use Keynote to give presentations with a two-display setup. Citrix' GoToMeeting application (which is what you use to give a webinar) shows useful information such as who is online viewing, and it enables y
-
Configure PXI-2567 to Trigger on Rising Edge using LabWindows​/CVI
I need some help configuring the trigger edge for a PXI-2567 using Labwindows/CVI. I have been able to successfully create and execute a scan list using both the ni-switch and daqmx APIs. However, currently the PXI-2567 triggers on the falling edge