4,124 Topics

Member Avatar for
Member Avatar for Virangya

HI CONSTANTS in my customer site are affecting my admin site. i don't know why. also when i browse for admin site and if index.php file is not available home.php file loads. i find this very weird... can anyone please help me? following is some of the errors it generates. …

Member Avatar for diafol
0
396
Member Avatar for client_jd

I am working on an online bus ticket booking project in jsp/servlet... using tomcat6 and mysql in netbeans... now i know i have done some really foolish and ancient coding .. but please help me in getting this done ... i am actually stuck in this session thing... look below …

0
75
Member Avatar for ammarcool

hii all! When i tried to access a value from the configuration file ([COLOR=#000080]ConfigurationManager.AppSettings("ADMIN"))[/COLOR] i am getting an error: [COLOR=#000080]'ConfigurationManager.AppSettings' is not declared or the module containing it is not loaded in the debugging session. [/COLOR] [COLOR=#000080][COLOR=#000000][/COLOR][/COLOR] [COLOR=#000080][COLOR=#000000]can you please anyone help me who have experienced the [/COLOR][/COLOR] [COLOR=#000080][COLOR=#000000]above said …

Member Avatar for afroz375
0
199
Member Avatar for G_Waddell

Hi All, I have to deliver a secure web ASP.net site that after 20 minutes of inactivity wipes the users sessions and forces then to login again. I have set up all the necessary timeouts on the server and at the top of each of my master pages I have …

Member Avatar for Airshow
0
642
Member Avatar for mpw5013

I'm making a simple box in the header of Joomla that displays the total quantity and total value of the cart. It works perfectly in VirtueMart, but once I leave the storefront the (Total) value is removed. How do I fix this? I would like to set a permanent super …

Member Avatar for mpw5013
0
129
Member Avatar for Onlineshade

Which compiler is needed for the following code? [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import javax.mail.*; import javax.mail.internet.*; public class Main extends JApplet implements ActionListener{ JTextField firstNameArea; JTextField lastNameArea; JTextField emailField; JTextField phoneNumber; JCheckBox myselfBox; JCheckBox someoneBox; JTextArea messageArea; public void init (){ setSize (250,300); setLayout (new BorderLayout …

Member Avatar for JamesCherrill
0
192
Member Avatar for luddite

I have a log in page for users, which if the login name is valid takes user name and puts it into a session.setAttribute(“user”, String); the user then gets redirected a userspage.jsp. At that page I can get the “user” using : <% getAttribute = (String)session.getAttribute("user"); %> the user is …

Member Avatar for luddite
0
156
Member Avatar for cyberdan123

Hello community, I am pretty new to c# and i have decided to use COSMOS to build a basic operating system, However, all my code compiles correctly but there is one problem, when i type shutdown, the system hangs, it does not shutdown and the white cursor continues flashing but …

Member Avatar for cyberdan123
0
1K
Member Avatar for stephen_UK

I would be grateful if someone could suggest what I need to do to get this to work. I have copied two short scripts which should demo the use of $_session, but the read script does not work. I believe the save script is the culprit though. Here they are: …

Member Avatar for Rhamises
0
143
Member Avatar for gorleone

Hello guys, last time I learn php and make some scripts that work on my localhost, but not in a hosting which I use. Example: checklogin.php: [code]<?php ob_start(); $host=""; $username=""; $password=""; $db_name=""; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername …

Member Avatar for diafol
0
384
Member Avatar for rakwel10

Im having a problem with my code. When I run it to php4 and it works fine. Then I tried it to php5. Im getting error -[COLOR="Red"]"Undefined Variable: _Session in ..."[/COLOR] [CODE]<?php session_start(); function logged_in() { return isset($_SESSION['idnum']); return isset($_SESSION['user_type']); return isset($_SESSION['fname']); } function confirm_logged_in() { if (!logged_in()) { redirect_to("index.php"); …

Member Avatar for rakwel10
0
144
Member Avatar for Buppy

Hi, A little help here needed - i want to make a class variable (array). Some values are expected to be from a session variable. Example [CODE] public $myArray = array( 'key1' => 'something', 'key2' => $_SESSION['something_else'], ) [/CODE] With this i get an error about unexpected variable. Aynone knows …

Member Avatar for Buppy
0
92
Member Avatar for ashneet

I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it.

Member Avatar for Balajipala
0
410
Member Avatar for karthik_ppts

Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript?

Member Avatar for karthik_ppts
0
7K
Member Avatar for sraj44

[code] <%@Language=VBScript %> <!-- #include file = "connectOracle.asp" --> <%if trim(session("UserName"))<>"" then%> <% Response.Buffer = true SET con = server.CreateObject("adodb.connection") con.open "DSN=VTSDSN;UID=vtsplop;PWD=vts@123" set rs = server.CreateObject("adodb.recordset") set rsdest=server.CreateObject("adodb.recordset") rs.ActiveConnection = con Set ORACON = server.CreateObject("adodb.connection") ORACON.Open "Provider=MSDAORA.1;User ID=SAPVTS;password=VTSSAP;Data Source=prd;Persist Security Info=False" tdate = date() fdate = date()-1 VEHMOV=trim(request("VEHMOV")) trans_code = …

Member Avatar for Atul Dhiman
0
237
Member Avatar for Sparhauoc

Greetings all, I am working on a website with data I only want logged in users to see. I currently have it where once they have logged in successfully, they can browse the website, and if they are not, they are directed to the login page. Sounds great. However, if …

Member Avatar for broj1
0
122
Member Avatar for Tauren

[code] #pragma comment(lib, "crypt32.lib") #include <stdio.h> #include <windows.h> #include <Wincrypt.h> #include <iostream> #define MY_ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING) //this is keylength bit shifted, here we have keylength of 1024bits hence 1024 << 16; #define KEYLENGTH 0x04000000 using namespace std; int main() { DWORD dwFlags = 0; HCRYPTPROV m_hProv; PBYTE pbKeyBlob; DWORD …

Member Avatar for nezachem
0
214
Member Avatar for mwenyenia07

i downloaded cronjob bootstrapper and edited as shown: #!/usr/bin/php [CODE] <?php /* |-------------------------------------------------------------- | CRON JOB BOOTSTRAPPER |-------------------------------------------------------------- | | By Jonathon Hill (http://jonathonhill.net) | CodeIgniter forum member "compwright" (http://codeigniter.com/forums/member/60942/) | | Created 08/19/2008 | Version 1.2 (last updated 12/25/2008) | | | PURPOSE | ------------------------------------------------------------- | This script is …

Member Avatar for rch1231
0
959
Member Avatar for Buppy

Hi, I'm having an issue with session storing. I have installed cakePHP and it has a default table created in the database for sessions (cake_sessions) and 3 fields: id, data, expires. Is there any way to change the session domain? For example, i want to pass the session data to …

0
56
Member Avatar for kimpham

Hi All, I have the function as window.onbeforeunload = alertChanges; and I only want to execute this only if the session is not time out. So if the session is time out I want to skip this call. Any idea? Thanks in advance, KP

Member Avatar for qiaolevip
0
37
Member Avatar for Stefano Mtangoo

I'm making personal MVC framework skeleton I plan to build all sites on it (reserve your question pls on why not CI or CakePHP et al). Now Thinking of session security, one option is database. I was wondering whether storing session data in root_app/tmp/sessions/ would be better as/more than database! …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for Suzie999

First I hope this is in the correct location, I apologize if it is not. [B]Here is what I'm talking about[/B] When a browser, or indeed windows crashes, or power is lost to computer after a restart of computer or application, the browser offers to restore your pages from the …

Member Avatar for PhilliePhan
0
99
Member Avatar for PinoyDev

Good day! I am having a little problem regarding clearing sessions. I have a link named LOGOUT in php.. when this link is click, I want to clear and detroy all sessions and redirect the user to index.php page. thank you for helping!

Member Avatar for PinoyDev
0
109
Member Avatar for vijiraghs

I am using netbeans to do "Library book search system"in EJB. I have a html page in which I want to display the list of books that match with the entered keyword. I get the keyword from the user and send it to a servlet through an ajax funtion which …

Member Avatar for vijiraghs
0
142
Member Avatar for paulnamroud

Hello, I would like to know how to: - Save an image into a Session Variables - Get the image from the Session Variable and display it on the web page. Here's the example on how to get the image from the DB: string v_customer_code = "PAUL"; SqlConnection v_connection = …

Member Avatar for lolafuertes
0
251
Member Avatar for rakwel10

How do I do this: on submit of the form, data will be saved in a session array variable. The purpose is to use the submitted data page by page. After that, how do I extract them? thats all.. thanks

Member Avatar for rv1990
0
70
Member Avatar for GeekByChoiCe

Not quite sure if im in the right section but lets try ... In my project i want to use a "Local Database Cache" and sync it with my online MYSQL server. Problem here is, the MySQL data-provider is not showing up when doing the wizzard for the Server/Client properties. …

0
74
Member Avatar for jimobama_tech

I write an upload image script to my local server it works but when i upload online it did not but it display 0 as $_FILE['filenam']['error'] this is the code send me answer please to my email <<snip>> or reply here $target_path='../uploads/'; $_passport_path=$_FILES['passport_file']['name']; $_pp_type=&$_FILES['passport_file']['type']; $_pp_size=&$_FILES['passport_file']['size']; $_maxima_size=30000; if(($_pp_type=='image/jpeg') ||// ($_pp_type=='image/gif') || …

Member Avatar for kaisarkhan87
0
116
Member Avatar for Farhad.idrees

Hi i want to echo session but it gives error...code is [CODE] session_start(); if(isset($_GET['P_Price'])) { $_SESSION['Price'] = $_SESSION['Price']+ $_GET['P_Price']; $_SESSION['Items']++; " <div class=\"shopping_cart\"> <div class=\"cart_title\">Shopping cart</div> <div class=\"cart_details\">Items echo $_SESSION['Items']; <br /> /// this line has error <span class=\"border_cart\"></span> Total: <span class=\"price\">echo $_SESSION['Price']; </span> ////this line has error also </div> …

Member Avatar for mamdouh ramadan
0
114
Member Avatar for Farhad.idrees

hi i have one page where i will get Categories of Products and i want to make session of those Categories..But when i referesh page session break...my code is.. [CODE] session_start(); $_Session['P_Category'] = $_GET['P_Category']; ////line 8 $P_Category =$_Session['P_Category']; $query = "select * from tblProducts_info where P_Category = '$P_Category'"; $result = …

Member Avatar for mamdouh ramadan
0
100
Member Avatar for nobuts

Hello Guys, I'd like to build a ajax cart which is pass the product id, title and quantity to another div. Saying the user clicked 3 items. And I'd like those item to display on a cart like: ID | Title | Qty ---------------- 1 | Apple | 2 2 …

0
96
Member Avatar for mualanj

hi,i am new to daniweb,glad to be a member of such wonderful community, what i am trying to build a google map where user can find a train location by entering the train name into the search box. i have two php file one is gmap.php which is outputing the …

Member Avatar for vibhaJ
0
186
Member Avatar for arshadarsal

i also experienced this problem,my web page showing multiple entries also. Please help me This is my code \:- [CODE]userid=Session("username") %> <html> <head> <title>Tax Invoices</title> <script language="JavaScript"> function openwindow(path) { window.open(path,"bill","menubar=yes,resizable=yes,scrollbars=yes,width=800,height=450,top=50,left=50"); } </script> <link rel="stylesheet" type="text/css" title="CSS" href="Include/Styles/style.css" media="screen" /> </head> <body> <table topmargin="0" leftmargin="0" align="center" ID="Table1"> <tr> <td><img src="images/headerksphc.jpg" …

0
137
Member Avatar for rakwel10

Here is the scenario... I submitted a form using post method. It will not yet save the data to the database. Instead, the post data will be redirected first to a page to view input results. Then if the user is satisfied, then thats the time to save the data …

Member Avatar for IIM
0
91
Member Avatar for sheennave

Hi! I am new in hibernate annotations so i am practising it on the console. In here i am using hibernate3.jar(came with Hibernate 3.5.1), hibernate-annotations-3.4.0.GA.jar etc. However when i run the main the application didn't start and following errors were generated. Any idea,please help.. !?? 0 [main] INFO org.hibernate.cfg.annotations.Version - …

Member Avatar for sheennave
0
1K
Member Avatar for l0ns008

This is a redone post as my last one contained all of my code and I wanted to simply for the post. Here is what I am doing: I show the categories that the user has placed a referral in on the page "my_categoreis.php". The user then can select a …

Member Avatar for l0ns008
0
193
Member Avatar for mev9669

Hi, The web application I developed throws an error to get the domain name that I set using session variable in session_start in global.asax file. The error gets resolved if I upload the web.config file. But the problem is that the error comes up again. The support st the hosting …

Member Avatar for mev9669
0
150
Member Avatar for raju.manick

Hi all, my client tested my Asp Website application by IBM Rational AppScan Sofware..during that i got follwing Security Report Issues [B]1.Temporary File Download/Alternate Version of File Detected[/B] Remediation Tasks : Remove old versions of files from the virtual directory How can i Remove old version of Virtual directory from …

0
46
Member Avatar for masterjiraya

you may download [URL="https://skydrive.live.com/embedicon.aspx/.Public/CLC.zip?cid=3e21e1e16478087a&sc=documents"]this[/URL] to see the whole thesis program. I'm more for now on functionality than design interface. this about a problem on the get_value.php to the receipt.php the problem: I can get now the value using session functions but the problem is.... the list of checked items from …

Member Avatar for ko ko
0
319
Member Avatar for rakwel10

pls help me fix the error. What and where is the problem? Thanks for the help! Here is the error message >> [B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )' …

Member Avatar for ddymacek
0
105
Member Avatar for magikman

I have the script below that hits devices with SNMP to pull back values on interface errors, load, etc. I would like to modify this script to pull free disk space. I am stumped on how to pull the data back and then calculate free space on each partition. If …

0
79
Member Avatar for G_Waddell

Hi We have two identical web servers in a farm and I need them to be able to share Session variables as I do not know which machine the user will be using at any given time i.e. if a user where to log in to a site on server1 …

Member Avatar for vikramrandhawa
0
233
Member Avatar for terabyte

I've been programming a web crawler for a while, I'm almost done, it works perfectly but when it crawls vbulletin forums i get weird urls example: forum/index.php?phpsessid=oed7fqnm9ikhqq9jvbt23lo8e4 index.php/topic,5583.0.html?phpsessid=93f6a28f192c8cc8b035688cf8b5e06d obviously this is being causes by php session IDs what can I do to stop this? I tried using cookies with HTTP::Cookies …

Member Avatar for maninaction
0
205
Member Avatar for raghujosh

How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width …

0
143
Member Avatar for 4789787

This is code for an internal forum, it works on my local server, but not the godaddy one i just purchased! phpinfo()s posted below: [CODE]<?php // forum.php :: Foro interno del juego.Version 1.0 define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; /* Este foro esta basado en el PHPBBs …

Member Avatar for chrishea
0
4K
Member Avatar for l0ns008

I am having an issue with the WHILE LOOP variable being past via POST to the next page. The first page provides the query results for all the categories in which a user has provided a referral. When the user selects one of the listed categories, it is supposed to …

Member Avatar for klemme
0
994
Member Avatar for l0ns008

I'm a NEWBIE and I have been stuck on this for days. I have one table that has the following rows: rid = Referral ID category = Category subcategory = Subcategory rbusiness = Referred Business Name rcontact = Referred Contact Name etc.. I have created the form (referral_input.php) that allows …

Member Avatar for l0ns008
0
2K
Member Avatar for pjh1985

Hi, I am developing a CMS based website which also has a flash gallery, the gallery accepts only xml data as input so i am using info from a database to output the required xml using php. I am setting the page that is currently being viewed using a session, …

Member Avatar for decade
0
267
Member Avatar for duke_swh

Hi, I'm trying to send an email using a lotus notes account and c# which is working fine. It is a two part mail which consistes of an HTML formatted message and attachment/s. The problem i'm encountering is when I have multiple attachments in different file formats. For example when …

0
297
Member Avatar for smrict

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\emohonv2\module-srksmka-spi.php:116) in C:\xampp\htdocs\emohonv2\auth.php on line 3

Member Avatar for chrishea
0
275

The End.