3,454 Topics

Member Avatar for
Member Avatar for cms271828

Hi, I've just uploaded a very simple web app that uses hibernate via a war file to my webserver: [URL="http://www.colin-java.co.uk/BANK"]http://www.colin-java.co.uk/BANK[/URL] The first couple of times I loaded the page above, it was fine, and it correctly displayed some of the contents of the User (MySQL) table. But now when I …

Member Avatar for javaAddict
0
148
Member Avatar for nice_candy

hi dear how are you hope will be ok i am in critical problem here my requirement i have a wcf service which login the user and it return uer id but i want to store that user id at server side because remaining methods required that id so when …

Member Avatar for kvprajapati
0
73
Member Avatar for pagas

I am workin on eclipse Helios Service Release 2, serser Tomcat 7. When i try to reach test.jst i get error 404, type Status report message /bandymas/view/test.jsp description The requested resource (/bandymas/view/test.jsp) is not available. it is strange becouse i can reach error.jsp in the same directory, using the same …

Member Avatar for scrappedcola
0
278
Member Avatar for Member #210807

In the javaScript function below, is there anything I can add to the window.open so that the parameters passed in the URL do NOT show in the window that is opened? It is okay if the script path shows, I just need to hide the parameters. If that is not …

Member Avatar for Airshow
0
6K
Member Avatar for azegurb

hi All, does anyone knows what does mean [CODE]define('INCLUDE_CHECK',true);[/CODE] below is full script [CODE]define('INCLUDE_CHECK',true); require 'connect.php'; require 'functions.php'; // Those two files can be included only if INCLUDE_CHECK is defined session_name('tzLogin'); // Starting the session session_set_cookie_params(2*7*24*60*60); // Making the cookie live for 2 weeks session_start(); if($_SESSION['id'] && !isset($_COOKIE['tzRemember']) && !$_SESSION['rememberMe']) …

Member Avatar for tomato.pgn
0
300
Member Avatar for koffimide

Help! i cannot access my ms access database i am using to learn web design. I keep getting different error codes depending on the windows webhosting used. The latest i got was : Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver]General error Unable to open …

Member Avatar for crishjeny
0
333
Member Avatar for Xaibo

In my previous post i strugled with a Mail form, which eventualy got solved with your help. Now i want to insert some check-boxes in this Mail form. I've already created the HTML form and the PHP, but something is not working. I can't send the values in the check-boxes …

0
61
Member Avatar for nice_candy

hi i am in critical problem here my requirement i have a WCF service which login the user and it return uer id but i want to store that user id at server side because remaining methods required that id so when user after success loing call product list the …

Member Avatar for jbisono
0
67
Member Avatar for vikram97

hello guys here is the situation am new to struts and jsp see i have a screen in which i have to enable the delete button which i did later in the corresponding code it was present in the business delegate now when i press the bbutton am getting this …

0
58
Member Avatar for siknoz

So I'm new to the programming side of webpages, but I'm trying to learn. I am in the process of making a single page website for a local radio group of roughly 20-30 members which may increase over time. They want to be able to show when they are online. …

Member Avatar for codewall
0
98
Member Avatar for koveras vehcna

Hi everyone, I have created a random text generator -ok, not so random, works with certain parameters- and at times it runs slowly. I looked up on the internet about speeding tricks and applied some of them that looked concurrent with my code piece. The code however, is still slow …

Member Avatar for woooee
0
216
Member Avatar for Nitin Daphale

In my project everywhere I get data(ex.customers) in a datatable and for further use I store it in session as [CODE]Session.Add("DtTblName",dt_Cust);[/CODE] And access through dt_Cust=(DataTable) Session["DtTblName"]; All is working fine, my concern is, Is it a right way to store heavy object like datatable store in session, to avoid database …

Member Avatar for Nitin Daphale
0
866
Member Avatar for phplover

Hello, I posted here as although it's in regards to mysql the thing i want to ask is in regards to php itself. I have two tables below as follows: [CODE]CREATE TABLE `users` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `status` char(10) NOT NULL, `username` varchar(15) NOT NULL, `email` varchar(50) NOT …

Member Avatar for phplover
0
149
Member Avatar for menukadevinda

hi, although, database is connected and admin table of my database consist of 2 rows of data, I still get 0 value for $numRow=mysql_num_rows($result); And mysql_fetch_array doesnt fetch values properly plz can any body help me thx in advance [code]<?php //include_once 'config.php'; /* 1. Got the username and password from …

Member Avatar for tomato.pgn
0
149
Member Avatar for aaraf

hi I want to set an authentication in two different computers if the master is logedin then the slave authentication can login else the slave authentication on the other computer in a network can not enter to the authentication page. [B]I can not use database to store the authentication as …

Member Avatar for Member #120589
0
111
Member Avatar for dyingatmidnight

Hello, I'm building a database using SQL and PHP and I've started on the user interface first rather than the database queries and everything - a little backwards perhaps. I have a login button that disappears for some reason when I add in a function for my search button. Here's …

Member Avatar for KadajXII
0
233
Member Avatar for js_

Hi, I'm a beginner of JavaScript. I need the code for creating [b]pgv_pvid[/b] and [b]ssid[/b]. I had searched the web, and got some code, I wonder if the code is right: [code]var curDate = new Date(); var curMs = curDate.getUTCMilliseconds(); pgv_pvid = (Math.round(Math.random() * 2147483647) * curMs) % 10000000000; ssid …

Member Avatar for hielo
0
228
Member Avatar for shwetabhardwaj

//servlet [CODE] if(rs.next()) { String s1 = rs.getString("pname"); String s2 = rs.getString("remarks"); String s3= rs.getString("cnt"); String s4 = rs.getString("bsponsor"); String s5 = rs.getString("bprowner"); String s6 = rs.getString("priority"); list.add(s1); list.add(s2); list.add(s3); list.add(s4); list.add(s5); list.add(s6); } session.setAttribute("list",list); RequestDispatcher rd=getServletContext().getRequestDispatcher("/project.jsp"); rd.forward(request,response); [/CODE] //jsp page [CODE] <% ArrayList arr = (ArrayList) session.getAttribute("list"); String myString=""; …

Member Avatar for majestic0110
0
3K
Member Avatar for doffen74

Hi. I am trying to develop a small webshop for some friends, and I tought it was working very well until I accidentally tested it in IE (works fine in Chrome and Firefox). When someone clicks the "add to basket" there is an On-Click that triggers a function. That function …

Member Avatar for doffen74
0
89
Member Avatar for kokfui

hi, all,i having code as below and the output is in the picture below as well <?php require_once("includes/session.php"); ?> <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php confirm_logged_in(); ?> <?php find_selected_item(); ?> <?php include("includes/header.php"); ?> <table id="structure"> <tr> <div class="menu"> <ul> <?php echo navigation($sel_cat, $sel_item); ?> </ul> </div> <td id="item"> <?php …

Member Avatar for stanley87
0
228
Member Avatar for vishalbhavsar

Hi friends, I am trying to develop a web application in which I have provided a facility for login and logout. I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and after that if he presses the browser's …

Member Avatar for javaAddict
0
80
Member Avatar for mossa

I'm construted a php-class where I create and save some elements in an XMLfile. Outside that class I instantiate the class and save it in a _SESSION['obj'] if the session has not been created yet, otherwise I want to get the document back and add new elements to the XMLfile. …

Member Avatar for mossa
0
336
Member Avatar for Stefano Mtangoo

Hi, I have Object that performs not only registration/Login but also manages users after the log in. Does it make sense to store object of that class in session or I should only store userID on session and use that to Query DB? My Object will contain user details (Full …

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for dyingatmidnight

Hello, I'm having a totally brain freeze on how to do something that I believe is relatively simple but I'm having such a stupid moment that I don't even know what to google at the moment. What I'm creating is a book catalogue for a school project. It opens to …

Member Avatar for tomato.pgn
0
165
Member Avatar for TechnoDarrel

Hi! i'm doing a final project for a university introduction course in web programmation. I'v Coded this: [CODE]class MainHandler(BaseHandler): def get(self): #product_comments = Comments().get_all() user = users.get_current_user() if user: member = Members().get_by_id(user.user_id()) baskets=Baskets().get_by_member(member) template_args = {'baskets': baskets} products = Products().get_all() product_comments = [] for product in products: comments = Comments().get_by_product(product) …

Member Avatar for woooee
0
241
Member Avatar for bhavyajyothinat

registration.asp::: [CODE] <% connection%> <%if request.QueryString("insert")<>"" then 'if request.QueryString("rbnMale")=="on" then ' gender="Male" ' else if request.QueryString("rbnFemale")=="on" then ' gender="Female" ' end if gender="male" qry="insert into registration(Username,Password,FirstName,LastName,Address,Place,LandPhone,MobilePhone,Email,Gender,Qualification)values('"+request.Form("txtUsername")+"','"+request.Form("txtPassword")+"','"+request.Form("txtFirstName")+"','"+request.Form("txtLastName")+"','"+request.Form("txtAddress")+"','"+request.Form("txtPlace")+"',"+request.Form("txtlandPhone")+","+request.Form("txtMobile")+",'"+request.Form("txtEmail")+"','"+gender+"','"+request.Form("txtQualification")+"')" CON.Execute(qry) Response.Redirect("ListUsers.asp") end if %> <form id="form2" name="form2" method="post" action="Registration.asp?insert=1" > <table width="286" border="1" align="center"> <tr> <td width="87">UserName:</td> <td width="183"><label> <input name="txtUserName" type="text" id="txtUserName" …

0
81
Member Avatar for denmarkstan

i want to retreive a record that has ten columns including a passport. i have done everything but when i run the program, i succedded in retrieving all the columns except the image field. please let somebody help.here is where i set the property of the image: [ICODE]<asp:DetailsView ID="DetailsView1" runat="server" …

Member Avatar for Member #692306
0
206
Member Avatar for chwong

Q1. If my application such as MS office in standalone computer and without access internet. Will this application need to use application layer in internet model. Application layer in Internet model consists of presentation layer, session layer and application layer. What software is using application layer? Q2. FTP is example …

Member Avatar for wmrandall
0
293
Member Avatar for mrlol

Hi.. Good day.. thank you for viewing my thread.. i would like to ask my fellow frens in daniweb to help me to validate access in my assignment system... currently my database is like this: [CODE]Assignment_id | Assignment_name | Member | Remarks 1 test 1 John, Sue, Veronica ok ok …

Member Avatar for perfectweb
0
142
Member Avatar for ARaza110

Hi, I have a problem related to Java servlet sessions. I don't understand why the getAttribute() function of the session object is used before setAttribute(); Here is the code: [code]Vector buylist=(Vector)session.getAttribute("Register"); if (action.equals("del")) { String del = request.getParameter("deli"); int d = (new Integer(del)).intValue(); buylist.removeElementAt(d); } session.setAttribute("Register", buylist);[/code] Thanks.

Member Avatar for mKorbel
0
428
Member Avatar for k4zz

Need help in transforming xml to xsl. I am trying to create a timetable and am trying to transform the xml data that i have into an xsl data. [CODE]<Timetable> <Week> <Day DayID = "Monday"></Day> <Day DayID = "Tuesday"> <Session no = "1"> <Module type = "CMT111"> <ModuleName> CPM </ModuleName> …

Member Avatar for xml_looser
0
305
Member Avatar for Shruthi_R

hi am developing a online test application i need to fix up a time for the test and redirect to result page as soon as the test is over how can i do this i think we need to set up a session timeout property can anyone clearly explain me …

Member Avatar for prashantprof
0
581
Member Avatar for WhiZTiM

First of all, I'm 17 learning C++ on my own! I've been enjoying Daniweb. and I did like to thank the community for that! Thank you all! Here goes my Problem... I have a small program that calculates time between two instances and it worked fine... so I decided to …

Member Avatar for WhiZTiM
0
302
Member Avatar for raephel

Hi all, I'm facing problem while with invalidating session. Actually I want to redirect a user to the login page if the session is invalid either he presses back button or enters a url. Plz help me. Thanks.

Member Avatar for raephel
0
439
Member Avatar for mbarandao

Good day: Need some assistance with an idea which seem to be complicated as I think of it and can't seem to figure out an appropriate implementation. I'm working on a hosted service app which requires a php logging system to identify the user and their respective account. On this …

Member Avatar for mbarandao
0
121
Member Avatar for G_Waddell

Hi I thought I'd share this with you all as it is really quite simple but I spent ages looking for it. I have an ASP.Net App with a master page containing a tree view that holds a heirarchy of data (as opposed to site naviagation) What I wanted was …

0
705
Member Avatar for agriz

[code] session_start(); $facebook = new Facebook(array( 'appId' => 'keys', 'secret' => 'keys', 'cookie' => true, 'domain' => 'domainname.com' )); [/code] //What is cookie => true here? Does it gives session to only one folder? I want to have that session in the overall website. [code] $session = $facebook->getSession(); if ($session) …

0
92
Member Avatar for david_s

hello everyone, i'm new to php and i'm having hard time with sessions i'm trying to create a php file with a drop down menu and when you select an item from the drop down menu, you could retreve it from another page. for example: a1.php [CODE] <?php session_start(); if(isset($_POST['color'])) …

Member Avatar for david_s
0
153
Member Avatar for arjuncc

hi, i am a newcomer in jsp. straight to the matter, my problem is, i have a parent page. one child pop-up is loaded from it say child1, and then next child child2 is loaded from child1. the problem is at the session out i need to close these two …

Member Avatar for youwill
0
137
Member Avatar for narekm

Hello there..While installing Joomla i am facing this problem...These are the requirements [CODE] Directive Recommended Actual Safe Mode Off Off Display Errors Off On File Uploads On On Magic Quotes Runtime Off Off Register Globals Off Off Output Buffering Off On Session Auto Start Off Off [/CODE] As you can …

Member Avatar for narekm
0
195
Member Avatar for pinkygirl

Hello! 1) I have no idea how to use Session objects, especially when it has to remember the Session of the logged user. When the user clicks logout, his session should be removed until the next time he logs in. 2) Also, how to validate the user in such a …

Member Avatar for pinkygirl
0
124
Member Avatar for jrotunda85

So this may be a bit of a stupid question but I'm not sure I'm understanding this completely. Currently, my site uses sessions to store username and a UserID across the site; however, the session lacks the ability to remember a user should they close the browser. I want to …

Member Avatar for Wraithmanilian
0
126
Member Avatar for McLaren

Hi, I am trying to integrate facebook using library from this blog: [URL="http://www.key2market.com/2010/12/integrating-facebook-with-codeigniter-2-0/"]http://www.key2market.com/2010/12/integrating-facebook-with-codeigniter-2-0/[/URL] I made a test function: [CODE] function index() { $this->ci =& get_instance(); // Create our Application instance //(replace this with your appId and secret). $this->ci->load->file(APPPATH.'/third_party/facebook.php'); $this->data['facebook'] = new Facebook(array( 'appId' => $this->ci->config->item('id'), 'secret' => $this->ci->config->item('key'), 'cookie' => …

0
79
Member Avatar for kieky

hi all, [B]i really need your help[/B].. can u correct my code to delete session below? thx before... [CODE] protected void GridView_Main_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Erase") { string childId = Convert.ToString(e.CommandArgument); IList dataUserList = new ArrayList(); if (Session["UserList"] != null) { dataUserList = (IList)Session["UserList"]; foreach (UserList …

Member Avatar for kvprajapati
0
75
Member Avatar for kokfui

<?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php require_once("includes/session.php"); ?> <?php find_selected_item(); ?> <?php include("includes/header.php"); ?> <?php if (isset($_POST['submit'])) { $top_up_cash = mysql_prep($_POST['top_up_cash']); $user_id = $_SESSION['user_id']; $result = mysql_query("SELECT * FROM users WHERE id='$user_id'"); while($row = mysql_fetch_array($result)) { $bidot_cash = $row['bidot_cash']; } $new_bidot_cash = $top_up_cash + $bidot_cash; $query= "UPDATE users SET …

Member Avatar for Member #120589
0
145
Member Avatar for lightshift

Hey all, I am making a website for a project which allows the user to "purchase" items. Currently, I have all the items displayed in a grid view which has selection enabled. When you click this, it stores the cell values into sessions which I retreive on another page as …

Member Avatar for Erra93
0
199
Member Avatar for eagled2

Hello. I am working on a permission system for a site I am creating. First I will explain what I am trying to do, then I will explain the problem I am having. I am saving the active permissions for a user at login. The permissions are saved in a …

Member Avatar for eagled2
0
139
Member Avatar for gaurav balyan

what is the role of session and why do we need session in asp.net please ellaborate

Member Avatar for Ramesh.KR
0
83
Member Avatar for Sorcher

Hello! I am beating myself up here. I use [CODE]include "header";[/CODE] on all pages, at the top, the header contains everything within <header></header> on a html page. But should i use [CODE]session_start();[/CODE] inside the header or before i include header.php on all pages? The session on my website logs out …

Member Avatar for Member #120589
0
322
Member Avatar for mekalai

I'm trying to create a simple login page by following a tutorial i saw online. I did everything it required but i got this error Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\final\login_success.php on line 7 Login Successful my code is login_success.php [CODE]<? // Check if session is not registered , …

Member Avatar for mschroeder
0
132

The End.