Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2009, 08:03 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default Changing Constants within a session

Good day...mmmm this question/method is a bit strange I think, however


If I have a .txt file containing constants. Can this file be written to with new values for the existing constants within the same session?

Objective is to:

> have the txt file as a global include
> give the user a form to alter the values
> when the form is submitted re-write the .txt file
> hopefully the new values will be present????

Am I correct in assuming other users will only need to refresh a page to also get the new values??

TYIA
__________________
Wind is your friend
Matt
 
Old August 27th, 2009, 12:07 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Unless you actually stored those values in Session variables, yes, a refresh is all that is needed.

You used "within a session" in your subject, so I'm a little nervous that you read the values from the text file once (say in a login page?) and store them in session variables. If that's the case, then you'd have to have some way of "noticing" the change. But if you mean everything is done via #include's, then you're fine.
 
Old August 27th, 2009, 12:11 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Thank you for your reply. I was just not sure about the ability to chnage the value of a constant the way I had described...
__________________
Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
declaring constants and pointer constants proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 3 March 6th, 2007 03:32 PM
Constants in XSL austinf XSLT 2 August 29th, 2006 06:04 AM
Global/Public Constants elansolutionsltd Access 6 May 13th, 2005 12:22 PM
DriveType constants fordrs3 Beginning VB 6 1 June 22nd, 2003 08:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.